ColorDialog box
How a color is picked from the ColorDialog box?
Expert
In order to pick a color from color dialog box, it is required to create an instance of ColorDialog box and calls the ShowDialog() method. Code required to show the color dialog box and to set BackColor property of the Label control same as the color selected in the color dialog box control is:
private void button1_Click(object sender, EventArgs e) { if (colorDialog1.ShowDialog() != DialogResult.Cancel) { label1.Text = "Here's my new color!"; label1.BackColor = colorDialog1.Color; } }
Is there a technique to suppress the finalize process within the garbage collector forcibly in .NET?
What do you mean by Proxy and how to produce proxy for WCF Services?
How submaster page is differ from the top-level master page?
Explain about the different services provided by the DLR to CLR.
How do dates, numbers, and currencies in a text box are formatted?
Describe the function of a SizeMode property of a PictureBox control?
Briefly describe about XSLT?
What is meant by the term Extensible Markup Language (XML).
What is Class?
Name the classes that are supported to make the XML DOM?
18,76,764
1945158 Asked
3,689
Active Tutors
1432730
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!