Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

How do I set the Title of a chart in Windows Form in C#? I don't want to set it in the designer properties. I want it to set when a button is clicked. For example:

C#
public void button2_click(object sender, EventArgs e)
{
  chart1.Title.Text = "Sales";

}
Posted
Updated 5-Feb-14 6:54am
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900