|
-
Jun 3rd, 2006, 07:28 AM
#1
Thread Starter
Hyperactive Member
[2.0] passing values by ref..got stuck..
I have downloaded a chart control (upon suggestion of one of this board member ).
I am trying to call this chart control and I am not able to progress. can some one take a look at this?
the code in the chart control is like this. this is downloaded code and not mine.
public class g01
{
public g01()
{
}
public void CreateChart(ref Chart chart1)
{
// Set the title.
chart1.Title="My Chart";
}
I wrote this code that calls this CreateChart method. But I don't know how to pass parameters to CreateChart method.
class Program
{
static void Main(string[] args)
{
g01 MSFTChart = new g01();
///next line I am stuck.
MSFTChart.CreateChart(ref Chart);
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|