摘要:
//回车切换焦点方法,只需在界面设置控件的TabIndex即可,以后用protectedoverrideboolProcessCmdKey(refMessagemsg,KeyskeyData) {if((!(ActiveControlisButton)) && (keyData ==Keys.Up || keyData ==Keys.Down || keyData ==Keys.Enter)) {if(keyData ==Keys.Enter) { System.Windows.Forms.SendKeys.Send("{TAB}");returntrue; 阅读全文
随笔分类 - Winform
Winform 开发中的一些小技巧
2011-11-03 23:09 by 鹏雕, 255 阅读, 收藏,
摘要:
1. 如何创建一个可改变大小没有标题栏的窗体?(How to create a form with resizing borders and no title bar?)form1.Text = string. Empty;form1.ControlBox = false;2. 如何在.NET的Windows窗体上启用XP主题集?(How to use XP Themes with Windows Forms using the .NET?)确认你的控件中FlatStyle属性已经修改为System,再修改Main方法。static void Main(){Application.Enable 阅读全文
浙公网安备 33010602011771号