随笔分类 -  WinForm

摘要:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1publicpartialclassFrmMain:Form2{3privatereadonlyThreadCheckWanThread=null;45privatereadonlyintCheckIntervalTime=1000;67privatereadonlyPingping=null;89privateStringIP="www.hao123.com";1011p 阅读全文
posted @ 2010-02-07 21:50 冯翔 阅读(1322) 评论(1) 推荐(0)
摘要:给TextBox控件加上KeyPress事件,事件代码如下: private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if ((int)e.KeyChar >= 65296 && (int)e.KeyChar <= 65305) { e.KeyChar = (char)((int)e.KeyChar - 65248); } } 阅读全文
posted @ 2010-01-09 16:40 冯翔 阅读(594) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1privatevoidtimer1_Tick(objectsender,EventArgse)2{3if(WindowState!=FormWindowState.Minimized)4{5intScreenWidth=Screen.PrimaryScreen.WorkingArea.Width;//屏幕宽度6intScreenRight=Screen.PrimaryScreen.Work 阅读全文
posted @ 2010-01-04 11:10 冯翔 阅读(436) 评论(0) 推荐(0)
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1privatevoidFrmMain_FormClosing(objectsender,FormClosingEventArgse)2{3{4if(MessageBox.Show("您确定要退出系统吗?"5,"询问"6,MessageBoxButtons.YesNo7,MessageBoxIcon.Question8,MessageBoxDefa 阅读全文
posted @ 2009-10-11 15:48 冯翔 阅读(578) 评论(0) 推荐(0)