This document contains information about group members for a project and code snippets for using charts, color dialog boxes, date time pickers, and progress bars in Visual Studio. It lists the names and student IDs of 4 group members and provides code examples for adding data to a chart, changing the color of a button using a color dialog, setting the text of a text box to the value or string of a date time picker, and updating a progress bar.
This document contains information about group members for a project and code snippets for using charts, color dialog boxes, date time pickers, and progress bars in Visual Studio. It lists the names and student IDs of 4 group members and provides code examples for adding data to a chart, changing the color of a button using a color dialog, setting the text of a text box to the value or string of a date time picker, and updating a progress bar.
This document contains information about group members for a project and code snippets for using charts, color dialog boxes, date time pickers, and progress bars in Visual Studio. It lists the names and student IDs of 4 group members and provides code examples for adding data to a chart, changing the color of a button using a color dialog, setting the text of a text box to the value or string of a date time picker, and updating a progress bar.
• Faisal Nazeer FA16-BCS-074 • Shaoib Ahmeed FA16-BCS-114 • Zaryab Zaheer FA16-BCS-042 Chart • Chart is use to represent data in graphic form
Code behind button
• this.chart1.Series["age"].Points. AddXY(“name", 21); Single series double series Color dialog box in visual studio • Open new project and create a Form1 with one button having text property click to change color as shown below. Code behind button
{ if(colorDialog1.ShowDialog() == DialogResult.OK) { button1.BackColor = colorDialog1.Color; } Place the following code in the form's constructor to register the event handler. this.button1.Click += new System.EventHandler(this.button1_Click);
Then run project and click on button . Then we see
Select the color you want to show on button Datetime picker Code behind button