博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

05 2011 档案

摘要:方案:调用Windows API1> 将TextBox的TabStop设置为false;2> 在程序中相应位置加入下列代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System.Runtime.InteropServices;……[DllImport("user32", EntryPoint = "HideCaret")]private static extern bool 阅读全文

posted @ 2011-05-31 11:22 hyruur 阅读(581) 评论(1) 推荐(0)

摘要:Title在这里输入文本... protectedoverridevoidWndProc(refMessagem){constintWM_SYSCOMMAND=0x0112;constintSC_CLOSE=0xF060;if(m.Msg==WM_SYSCOMMAND&&(int)m.WParam==SC_CLOSE){//屏蔽传入的消息事件this.WindowState=FormWindowState.Minimized;return;}base.WndProc(refm);}protectedoverrideboolProcessCmdKey(refSystem.Wind 阅读全文

posted @ 2011-05-30 14:59 hyruur 阅读(878) 评论(1) 推荐(1)