摘要:        
C#中WinForm程序退出方法技巧总结 一、关闭窗体 在c#中退出WinForm程序包括有很多方法,如:this.Close(); Application.Exit();Application.ExitThread(); System.Environment.Exit(0); 等他们各自的方法不一    阅读全文
        
            posted @ 2017-04-26 17:26
朱利军
阅读(241)
评论(0)
推荐(0)
        
            
        
        
摘要:        
winform的菜单栏和工具栏 1、ContextMenuStrip--右键菜单 可以绑定在任何一个控件上,添加操作快捷键,并可以设置多层 每行相当于一个按钮,输入-可添加分割线 2、MenuStrip--菜单 优先级最高,一定会出现在窗体最上面 设置快捷键:选中菜单项--右键属性--ShortCu    阅读全文
        
            posted @ 2017-04-26 17:23
朱利军
阅读(601)
评论(0)
推荐(0)
        
            
        
        
摘要:        
无边框窗体的移动和阴影 窗体阴影API const int CS_DropSHADOW = 0x20000; const int GCL_STYLE = (-26); [DllImport("user32.dll", CharSet = CharSet.Auto)] public static ex    阅读全文
        
            posted @ 2017-04-26 17:18
朱利军
阅读(165)
评论(0)
推荐(0)
        
            
        
        
摘要:        
winform公共标签和常用属性 winform公共标签和常用属性 公共控件 1、Button(按钮): Enabled :确定是否启用控件 Visible:确定控件是否可见 2、CheckBox(多选项) CheckListBox -(多选项列表)可用CheckBox和Panel或FlowLayo    阅读全文
        
            posted @ 2017-04-26 17:12
朱利军
阅读(564)
评论(0)
推荐(0)
        
 
                     
                    
                 
                    
                 
 
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号