try
class AddControl
{ public static void addBUtton(ref Form varForm)
{ Button newbutton=new Button();
int localy=0;
int localx=0 ;
newbutton.Location=new Point (localy,localx);
newbutton.Name ="wq";
varForm.Controls.Add(newbutton); }
}
class AddControl
{ public static void addBUtton(ref Form varForm)
{ Button newbutton=new Button();
int localy=0;
int localx=0 ;
newbutton.Location=new Point (localy,localx);
newbutton.Name ="wq";
varForm.Controls.Add(newbutton); }
}
解决方案 »
- 在线等!急需解决问题,如何知道DLL 的里事件?
- C#通过socket发送结构体
- firefox下出现一个问题,ie和chrome都没有出现(关于右边滚动条的问题)
- picturebox在改变电脑分辨率下的问题
- gridview 行 鼠标双击事件 有问题!
- 一个关于datagrid的功能如何实现,谢谢
- 谁能告诉我关于窗口消息的事情。
- 关于.net Remoting的问题?为什么同一个关于客户端订阅服务端事件(服务端广播)的程序,在某些机器上好用,在某些机器上不好用呢?请帮
- 在C#中如何取得当前的时间?
- 关于c#:什么叫变量没有引用对象
- Winform中,如何让普通button当被点击时有被压下去的效果?
- 在.NET中合并EXCEL单元格,为什么会无法执行下去呢?
。From1"表示类,此处应为变量
下面这句话放在构造函数的最下面(如果你有其他操作的话)
AddControl.addBUtton(ref this);