C#中去掉Toolstrip边框的方法
来源:互联网 发布:数据的统计分析 编辑:程序博客网 时间:2024/05/20 00:15
问题:在C#中使用toolstrip时,当RenderMode设置为System时会出现下面有条灰线,无法通过基本的设置属性除去;
解决办法:
只需要重绘一下toolstrip即可,C#源代码如下:
//toolstrip重绘
private void toolStrip1_Paint(object sender, PaintEventArgs e)
{
if ((sender as ToolStrip).RenderMode == ToolStripRenderMode.System)
{
Rectangle rect = new Rectangle(0, 0, this.toolStrip1.Width, this.toolStrip1.Height-2);
e.Graphics.SetClip(rect);
}
}
设置toolstrip的重绘事件为这个就OK了.....
http://erpdream.blog.163.com/blog/static/134043307200911771050347/
- C#中去掉Toolstrip边框的方法
- C#中去掉Toolstrip边框的方法
- C#中去掉Toolstrip边框的方法
- UIWebView 去掉边框的方法
- 去掉AlertDialog边框的方法
- MFC中去掉CMainFrame蓝色边框的一种方法
- C# Visual Studio 2005中修改toolStrip的内容
- C#中改变工具条ToolStrip的位置/宽度/高度?
- 还是c#的toolstrip简单
- IOS UIWebView去掉边框的方法
- table边框完全去掉的方法
- 关于 Swift segmentController 去掉边框的方法
- AI中去掉边框
- C#中如何改变DataGridView控件边框颜色的方法
- 去掉UITableView中Group样式cell的边框目前最完美方法
- 去掉UITableView中Group样式cell的边框目前最完美方法
- C# ToolStrip 控件的动态生成
- C#中的ToolStrip控件的使用
- 心痛的时候抱抱自己
- 1039:词组缩写
- 获取Multipatch图层中模型的底面图形和模型的高度
- 神马是敏捷?(4)——敏捷不能当饭吃
- mono touch中touch触发对象判断
- C#中去掉Toolstrip边框的方法
- Spring3 MVC 笔记(二) —json+rest优化
- 顺序表的实现
- 【cocos2d-x IOS游戏开发-捕鱼达人2】cocos2d-x简介与开发环境搭建
- css控制大幻灯绝对居中(非背景)
- 献给北漂一族
- 数据库复制技术全面了解
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- 从SPS帧解析视频分辨率