Can you solve the simple problem ?
Hi,
I have the following Syntax :
Panel1.Contros.Add(Button1);
I want to make it as generic, not specific to Panel1 (It may be Panel1, Panel2...etc...).During runtime i can pass either "Panel1" or "Panel2" or etc... Is there any way to do that ?
Here are the ways I think so
1. Pointer Technique
2. Object reference
3. Handle
Can you give me sample example on each of them how to use them ?
Advance ThanX for your time & patience.
Cheers,
Kishore
|