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;
}
Write the name of event handlers which can be included in a Global.asax file?
In what way we can auto size the button to fit the text?
What does a break statement do in the switch statement?
How a color is picked from the ColorDialog box?
Illustrate the Session state in the ASP.NET.
How we can decide whether we should deploy application or publish application?
Name the classes that are supported to make the XML DOM?
Explain the function of .WebPart file do?
What is Memory-Mapped Files?
Write the advantages of the code-behind feature?
18,76,764
1921792 Asked
3,689
Active Tutors
1418251
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!