Dev的RibbonForm
2015-12-14 09:56
381 查看
应用情形:如下图,工具栏为功能选择,然后具体功能窗体则作为mdi窗体显示。
这种模式是本人常用的,代码少,风格也比较顺眼。
说明:功能菜单的图标是由下面的两个imagecollection集合提供,需要在ribboncotrol属性中选择。
Mdi控件添加后默认是以添加窗体为parent,通过此窗体加载的窗体都是Mdi子窗体。
具体实现代码如下:
这种模式是本人常用的,代码少,风格也比较顺眼。
说明:功能菜单的图标是由下面的两个imagecollection集合提供,需要在ribboncotrol属性中选择。
Mdi控件添加后默认是以添加窗体为parent,通过此窗体加载的窗体都是Mdi子窗体。
具体实现代码如下:
private void barButtonCust_ItemClick(object sender, ItemClickEventArgs e)//点击功能事件 { if (customer == null || customer.IsDisposed) { customer = new FrmCust(); customer.MdiParent = this; customer.Show(); } else { customer.Activate(); } }
相关文章推荐
- Java容器类List、ArrayList、Vector及map、HashTable、HashMap的区别
- 第12周项目1 图基本算法库
- 【caffe跑试验遇到错误:Check failed: error == cudaSuccess (2 vs. 0) out of memory】
- bug系列-------home key 失灵
- android获取已安装应用信息(列表图标包名列表)
- std::thread 构造
- JVM系列五:JVM监测&工具
- int转string,string转int
- 解决office 2007中的document imaging软件的OCR识别出错问题
- 为数据前面加上货币符号
- http://www.microsoft.com/en-pk/download/details.aspx?id=40762
- C#发邮件_EmailHelper
- 调用系统相机
- ibatis与spring的配置( There is no statement named XXX in this SqlMap)
- 浅谈 Parcelable与Serializable的区别
- 用CNZZ实现Html5中的事件统计
- 【LEETCODE】232-Implement Queue using Stacks
- android 自定义viewGroup实现网易左侧菜单效果
- 使用代理服务器有什么好处?
- ov9712雄迈模组分析