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;
}
How can CAS be turn-on and turn-off?
Write the difference between an interface and abstract class?
Briefly explain round trip?
State the various advantages of cloud services?
What are the different ways to manage state in ASP.Net?
How we can enable impersonation in the web.config file?
Explain the syntax of the “for” loop.
Describe briefly about ASP or Active Server Pages?
How we can populate the dataset before querying the DataSet object by using LINQ to DataSet?
What is Object?
18,76,764
1961380 Asked
3,689
Active Tutors
1430551
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!