D
Doug Handler
I have a static method that needs to assign a type to an instance of an
object. What's the best way to address this?
e.g.
private Panel pnlMain = new Panel();
.....
public static void SetControl(Button btnInfo)
{
// pseudo-code - I need this to happen here - how can I do this. The
method needs to be a static one.
this.pnlMain.Controls.Add(btnInfo);
}
Doug
object. What's the best way to address this?
e.g.
private Panel pnlMain = new Panel();
.....
public static void SetControl(Button btnInfo)
{
// pseudo-code - I need this to happen here - how can I do this. The
method needs to be a static one.
this.pnlMain.Controls.Add(btnInfo);
}
Doug