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;
}
State different Visual Basic features which provide support to the LINQ?
Write the difference between the Literal control and Label control?
Write down in brief the various types of Triggers in the WPF?
What do you mean by the XOML files?
Write down a brief note regarding rapid application development tool?
What are validation controls? How many validation controls are present in ASP.NET 4.0?
Distinguish among Compiler and Interpreter?
Illustrate the difference between the XML ‘Fragment’ and an XML ‘Document’.
What will happen if the ASP.NET server control with the event-handling routines is absent from its definition?
Is it possible to write a class without specifying the namespace? Write the namespace to which it belongs by default?
18,76,764
1933804 Asked
3,689
Active Tutors
1420146
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!