惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
月光博客
月光博客
Jina AI
Jina AI
宝玉的分享
宝玉的分享
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
V
V2EX
WordPress大学
WordPress大学
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
B
Blog
博客园 - 叶小钗
小众软件
小众软件
Stack Overflow Blog
Stack Overflow Blog
P
Proofpoint News Feed
A
About on SuperTechFans
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator Blog
Microsoft Security Blog
Microsoft Security Blog

博客园 - lemontree

SQL SERVER学习计划 新的开始 C#.NET禁止一个程序启动多个实例 - lemontree - 博客园 MDI窗体,子窗体在父窗体中最大化,如果子窗体已经打开则显示,不重复打开窗体 Are You Going To Scarborough Fair中文歌词 安装VS2005 SP1失败 (转载)浅析HTTP协议 (转载)你是合格的程序员吗?—合格程序员应该具备的12种能力 夯实基础,从HTML开始 SQLserver2000〔Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server不存在或访问被拒绝 压缩数据库日志文件 RDLC报表(一) [转载]OWC做电子表格和图表的试验 .net 2.0 Configuration Error 浅谈ASP.NET的内部机制(一) seo专题之开篇有益 引用Microsoft.Office.Interop.Excel出现的问题 OWC生成Excel的效能优化 妇女节各人的不同回复
winform里c#验证用户正确后 怎么打开新窗口时关闭登陆窗口
lemontree · 2009-06-09 · via 博客园 - lemontree

static   void   Main(string[]   args)  
  {  
  //打开登录窗口  
  LoginForm   lg   =   new   LoginForm();  
  if(lg.ShowDialog()   ==   DialogResult.OK)  
  {  
   
  Application.Run(new   MainForm());//打开你指定的窗口  
  }  
   
  }  
  登录窗口(LoginForm)中  
  在你完成密码验证代码后加上 this.DialogResult=DialogResult.OK;  

posted @ 2009-06-09 00:04  lemontree  阅读(1165)  评论(0)    收藏  举报