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;
}
Two catch blocks can be executed or not?
Illustrate some of the points regarding UserControl in WPF?
Specify various types of assemblies and explain them.
List the basic characteristics of the Cloud computing?
What is meant by DLR (Dynamic Language Runtime)?
Illustrate four common properties of all validation controls?
Specify, what is an Activity?
Write down some of the benefits of hosting WCF service in the WAS?
Differentiate between Assembly and NameSpace?
Describe in brief the term XAML extensible markup language?
18,76,764
1933816 Asked
3,689
Active Tutors
1457852
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!