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;
}
How the customized properties of .NET application can be retrieved from XML .config file?
Describe the role of new keyword in brief.
Explain what is meant by the IL?
Write down in brief the various types of Triggers in the WPF?
Describe DataReader object?
Write about the SOAP encoding?
Explain the use of a CommandBuilder class?
What is meant by the Object Pooling?
Briefly explain about identifier.
What do you understand by the garbage collection? Explain the difference between garbage collections in .NET 4.0 and its earlier versions.
18,76,764
1934496 Asked
3,689
Active Tutors
1444898
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!