下面的代码是别人发上来的,但是只在预览时有效,正常打开窗口时,提示错误,看哪位大侠能完善完善:
窗口ALterLoad事件中加入如下代码
Dim wf As System.Windows.Forms.Form = e.Form.baseform
wf .ControlBox = False
wf .FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
wf .MaximizeBox = False
wf .MinimizeBox = False
wf .StartPosition = System.Windows.Forms.FormStartPosition.Manual
wf .Text = ""
wf .WindowState = System.Windows.Forms.FormWindowState.Maximized