摘要: ... 阅读全文
posted @ 2008-06-18 16:29 大口仔 阅读(1725) 评论(0) 推荐(0)
摘要: 0、说明 功能:输入正确的密码后,主程序才启动。 formMain:主程序窗体 formLogin:登陆窗体 1、formLogin的关键代码 if (PasswordFromTextbox == PasswordFromDatabase) { DialogResult = DialogResult.OK; this.Close(); } 2、更改Pro... 阅读全文
posted @ 2008-06-18 16:24 大口仔 阅读(443) 评论(0) 推荐(0)
摘要: 1,MDI窗体 设有两个窗体frmMain,frmChild,则: frmMain: 设IsMdiContainer属性为true 打开子窗口: 在相关事件中写如下代码: frmChild child=new frmChild(); child.MdiParent=this;//this表示本窗体为其父窗体 child.Show(); 在打开子窗体时,如果只允许有一个子窗体... 阅读全文
posted @ 2008-06-18 16:08 大口仔 阅读(275) 评论(0) 推荐(0)

使用Live Messenger联系我
关闭