读书人

vb.net 2003点击窗体右上角的关闭按钮

发布时间: 2013-03-26 09:54:33 作者: rapoo

vb.net 2003点击窗体右上角的关闭按钮
点击关闭按钮的时候不退出程序,而是放到托盘程序中。

各位大侠帮帮忙
[解决办法]
在Form中增加以下代码:
Protected Overrides Sub OnClosing(ByVal e As System.ComponentModel.CancelEventArgs)
Me.WindowState = FormWindowState.Minimized
e.Cancel = True
End Sub

读书人网 >VB Dotnet

热点推荐