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;
}
Write difference between an Abstract class and an Interface.
How one can put a border around the picture box?
Name some classes which is utilized to handle standard menu in MenuStrip control.
Write down some of the Features of WPF in brief.
State the difference between the WindowsDefaultBounds and WindowsDefaultLocation properties?
Specify the advantages of the DOM?
What is the function of "EnableViewState" property? Why do we require it On or Off?
Briefly describe about XSLT?
Explain DataAdapter class in the ADO.NET?
Briefly state the characteristics of the value-type variables which C# programming language supports.
18,76,764
1943152 Asked
3,689
Active Tutors
1422262
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!