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;
}
Briefly describe contra-variance and covariance in .NET Framework 4.0 and give an example for both?
What setting should be added in a configuration file to reject the particular user from accessing secured resources?
Describe code contracts?
Write the major differences between the classic ADO and ADO.NET?
What is Object?
Write all names of public properties well-defined in the WebService class.
Illustrate the terms Authorization as well as Authentication?
Explain the working of Cookies. And also give the example of the Cookie abuse?
What we can do to allot page specific attributes in the ASP.NET application?
Specify the syntax which is be used to inherit from a class in C#?
18,76,764
1929509 Asked
3,689
Active Tutors
1419229
Questions Answered
Start Excelling in your courses, Ask an Expert and get answers for your homework and assignments!!