试试这个:[DllImport("user32.dll", EntryPoint="DestroyWindow")]
public static extern int DestroyWindow (
int hwnd
);
public static extern int DestroyWindow (
int hwnd
);
解决方案 »
- 用消息来进行重绘后,其他控件的BackColor = Color.Transparent不起作用了。怎么解决这个问题。
- 向数据库中插入数据出错,望大家给指点一下,谢了!
- windows mobile模拟登录、调用j2ee的web工程
- C#文件上传对大侠们的小问题。
- 在Main()方法中使用try{……}catch为什么捕捉不到异常?
- Splitter控件的诡异问题
- 急问: web自定义控件设置了自定义属性以后,页面的设计时支持就出错了
- 文件夹上传的问题!
- 模仿按键动作,请教给我
- 抢分呀(1000分)http://expert.csdn.net/Expert/topic/1370/1370389.xml?temp=.8434259
- 求一正则表达式将SQL语句中的ORDER BY子句去掉
- 水晶报表子报表嵌套问题
this.buttonx = new System.Windows.Forms.Button();
this.buttonx.Location = new System.Drawing.Point(150, 40);
this.buttonx.Name = "buttonx";
this.buttonx.TabIndex = 1;
this.buttonx.Text = "buttonx";
this.Controls.Add(this.buttonx);
当然可以!
close和dispose区别是什么?
.net提倡自动的垃圾收集