01 2010 档案
摘要:给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
阅读全文

浙公网安备 33010602011771号