随笔分类 - 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
阅读全文
摘要:给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); } }
阅读全文
摘要:代码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
阅读全文
摘要: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
阅读全文

浙公网安备 33010602011771号