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;
}
List the binders that are provided by .NET Framework 4.0?
What we can do to allot page specific attributes in the ASP.NET application?
Explain the use of <sessionState> tag in a web.config file?
Write about the Satellite Assembly?
Write the name of the parent class of a Web server control?
Differentiate between a ContextMenuStrip control and a MenuStrip control?
Specify how Overriding method is different from Overloading?
Write the major differences between the classic ADO and ADO.NET?
State the relationship between Class and an Object?
18,76,764
1959046 Asked
3,689
Active Tutors
1455244
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!