Choose color from ColorDialog box
How we can choose the color from a ColorDialog box?
Expert
To choose color from a color dialog box, we must create the instance of a ColorDialog box and invoke to the ShowDialog() method. Code to display color dialog box and put the BackColor property of a Label control similar to a color selected in a color dialog box control is as follows:
private void button1_Click(object sender, EventArgs e)
{
if (colorDialog1.ShowDialog() != DialogResult.Cancel)
label1.Text = "Here's my new color!";
label1.BackColor = colorDialog1.Color;
}
What is web.config file?
What is WSDL?
Compare and contrast in brief the C# and Visual basic.NET?
State the basic features of OOPs.
Write the code to choose an item in a ListView control programmatically in the C#?
What is meant by the Runtime engine?
Explain about the ASP.NET AJAX Framework.
14. What is difference between Tool Strip drop down button and toolstripsplit button?
Differentiate between the HtmlInputRadioButton or HtmlInputCheckBox control?
Explain what is C#?
18,76,764
1935785 Asked
3,689
Active Tutors
1443055
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!