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 do you understand by the garbage collection? Explain the difference between garbage collections in .NET 4.0 and its earlier versions.
Write down in brief the use of console application?
State the use of DropDownStyle property of the ComboBox control?
Write the difference between the Procedural and Object-oriented programming?
Explain about the rules and regulations which should be followed when creating the well-managed XML document.
Briefly describe about data type?
Describe about LINQ query expressions?
Describe Common Language Specification (CLS)?
In what way we can auto size the button to fit the text?
Write differences between Int32 and Int.
18,76,764
1960823 Asked
3,689
Active Tutors
1426442
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!