creating id names on the fly?
I have a need to create new tabPages. I've done it. Now I have to put some meat on them. Specifically, they will have some surfaces that I do not quite know what they are. One of them seems to be a grid. I am using a prepackaged NPlot source code for this.
Everything works on one tabPage flawlessly. Now I want to generate another tabPage, and perhaps more and put those two surfaces on each and draw graphics on them. When I tried toControl.Add (object) where the object is one of those surfaces I ended up with a new tabPage generated, two grids riped off of the original tabPage and set onto the new tabPage with a perfect plot on it. The original tabPage lost all surfaces as well as the original diagram.
What I want to do is do some multithreading. But before that I want to generate extra surfaces (or grids, perhaps) and add them to the form. I need to do it on demand, during run time.
I need a set of names for this. They also have mneumonic significance for me. In VFP there is a convenient way to do it and I am looking for a similar device in here. Over there you define a macro like this:
let say you have a
int counter = 101;
macro1 = "this.label"+CHR(counter)+"=newSystem.Windows.Forms.Label ( );"
Then you simply do this:
¯o1 and the new object is generated. The moral of the story is that you can shape your string any which way you wish and have arbitrary names for objects.
It is not how the code is actually written in VFP, I just wanted to give you an idea.
I tried to find C# macros on MSDN to no avail.
I am sure there is a way.
Thanks.

