ColorDialog box
How a color is picked from the ColorDialog box?
Expert
In order to pick a color from color dialog box, it is required to create an instance of ColorDialog box and calls the ShowDialog() method. Code required to show the color dialog box and to set BackColor property of the Label control same as the color selected in the color dialog box control is:
private void button1_Click(object sender, EventArgs e) { if (colorDialog1.ShowDialog() != DialogResult.Cancel) { label1.Text = "Here's my new color!"; label1.BackColor = colorDialog1.Color; } }
Explain Windows services?
What are the steps involve in Assembly execution?
Explain the use of the PlaceHolder control? Is it possible to see it at runtime?
State the function of the “Try-Catch-Finally” block
Name the methods of DataView class?
Define Query String? Explain its advantages and disadvantages?
What do you understand by the Tuples?
Define constant and variable.
What do you know about parameter and explain new types of the parameters introduced in the C# 4.0?
State the difference between System.StringBuilder and System.String classes?
18,76,764
1924202 Asked
3,689
Active Tutors
1414802
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!