Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 12

Group Members

• Ijaz Sharif FA16-BCS-014


• 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

private void button1_Click(object sender, System.EventArgs e)


{
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

private void button1_Click(object sender, System.EventArgs e)


{
if(colorDialog1.ShowDialog() == DialogResult.OK)
{
textBox1.Text = DateTimePicker1.Text;
textBox1.Text = DateTimePicker1.Value;
textBox1.Text = DateTimePicker1.Value.ToShortDateString;
}
ProgressBar
Code behind Button

You might also like