05 2007 档案

摘要:对话框 Dialogs将ControlBox属性设为false,这样就去掉了系统控制菜单(最大化,最小化和关闭)set the ControlBox property to false//使用窗体类的ShowDialog方法将窗体以模式对话框的方式显示其所有者位当前活动窗体ShowDialog()//DialogResult枚举用来指示对话框传递给其所有者的返回值,Button类具有DialogResult属性DialogResult.OK DialogResult.Cancel DialogResult.None// AcceptButton&CancelButton是窗体类的属性, 阅读全文
posted @ 2007-05-07 00:14 OYJJ 阅读(494) 评论(0) 推荐(0)
摘要:快捷方式从设计视图切换到代码视图 F7将焦点移到属性面板 Alt+Enter,F4模板代码解读1. 动态主题支持 dynamic theme support--保证用户接口的外观和当前的Windows主题一致//keeps a UI's appearance consistent with the current Windows themeApplication.EnableVisualStyles();2. 布局 Layout--确保将自动保持正确的视图比例//ensures that the form will automatically retain the correct vi 阅读全文
posted @ 2007-05-04 15:48 OYJJ 阅读(345) 评论(0) 推荐(0)