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;
}
Describe the major subsystems of the WPF (Windows Presentation Foundation) in brief?
Which statement can be used to replace many if-else statements in the code.
Explain the following methods DataAdapter.Update() and DataSetAcceptChanges()?
In what way we can format dates, numbers and currencies in the text box?
Explain DataReader object?
Explain about the AppFabric component?
Name the classes that are supported to make the XML DOM?
State classes which are introduced in the System.Numerics namespace.
How one can create the ellipse, which is the non- rectangular window?
What is the duration for items stored in the ViewState?
18,76,764
1941556 Asked
3,689
Active Tutors
1457863
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!