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;
}
List some of the new features of ASP.NET AJAX 4.0?
Explain the function of .WebPart file do?
State the method which can be used to impose Garbage collection in .NET?
Briefly explain the use of a Panel control? And also state whether it displays during runtime?
Explain about the Native Image Generator?
Describe briefly about ASP or Active Server Pages?
Differentiate between the HtmlInputRadioButton or HtmlInputCheckBox control?
Explain DataAdapter class in the ADO.NET?
What are the rules and regulations which should be followed while creating the well-formed XML document?
Illustrate the term event bubbling?
18,76,764
1954506 Asked
3,689
Active Tutors
1424546
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!