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; } }
Write down the core of WPF assemblies?
Name the parent class which is used to create all Windows services in .net?
Is it a good practice to practise handle the exceptions in code?
Explain the use of a CommandBuilder class?
Write the difference between the Literal control and Label control?
How can we programmatically prevent the Combobox from dropping, in the .NET 4.0?
Write differences between Int32 and Int.
Two catch blocks can be executed or not?
Write down the importance of delegates. Where must they be employed? Write down the conditions where we need them?
Describe Common Language Specification (CLS)?
18,76,764
1958773 Asked
3,689
Active Tutors
1416579
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!