Skip to content
Loading
  
  •   
  •   
  •   
  •   
  • +1
  • +1
    You can use html5 element. It provide default date picker functionality like : 
     
     
    +1
  • Rajanikant Hawaldar
    +1
    Hi Akshaya
     
     
    private void button1_Click(object sender, System.EventArgs e)
    {
    ColorDialog MyDialog = new ColorDialog();
    // Keeps the user from selecting a custom color.
    MyDialog.AllowFullOpen = false ;
    // Allows the user to get help. (The default is false.)
    MyDialog.ShowHelp = true ;
    // Sets the initial color select to the current text color.
    MyDialog.Color = textBox1.ForeColor ;
    // Update the text box color if the user clicks OK
    if (MyDialog.ShowDialog() == DialogResult.OK)
    textBox1.Background= MyDialog.Color;
    }
    +1
  • Laxmidhar Sahoo
    0
    1. <p>Choose your monster's colors:p>  
    2.   
    3. <div>  
    4.     <input type="color" id="head" name="head"  
    5.            value="#e66465">  
    6.     <label for="head">Headlabel>  
    7. div>  
    8.   
    9. <div>  
    10.     <input type="color" id="body" name="body"  
    11.             value="#f6b73c">  
    12.     <label for="body">Bodylabel>  
    13. div>  
    0