模拟filedialog 因为open和save 2个filedialog的背景色需要修改,查了很多办法都改不了。所以打算自己写一个,但是没什么思路,所以求助各位 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你可以使用一款换肤的组件。外加自己编写主题。换肤组件接管了界面绘制的API,所以包括FileDialog在内的所有对话框的界面都被替换了。当然,你也可以为你这个特定的需求这么做,但是按照你的水平,似乎会比较难。 重写控件 例子: class lab : Label//例子 { public Label CreateLab(string labName, int x, int y, int w, int h, string text) { this.Name = labName; this.AutoSize = true; this.Location = new System.Drawing.Point(x, y); this.Size = new System.Drawing.Size(w, h); this.Text = text; return this; } } private void button1_Click(object sender, EventArgs e)//调用 { lab l = new lab(); l.CreateLab("lab", 10, 29, 20, 20, "完成"); this.Controls.Add(l);//动态添加 } 再次用的时候就不用每个属性去设置了 chart 控件 曲线点击事件 求即时通讯系统C#源代码 文件上传进度条怎么实现啊?急急急~! 这么晚了。不知道大家还在不在线。。WinForms中如何判断本机是否联网?? 如何遍历WINFORM中所有的控件?? 关于异步Socket的一些疑问。 大家都来看看!!! 求助:用VS2005 C#开发无线网络接入 程序 【求助】c#工程灵异事件 如何将TabControl控件中的页面切换按钮变灰不可用 注册表信息清理 C# 初学者求帮忙
例子: class lab : Label//例子 { public Label CreateLab(string labName, int x, int y, int w, int h, string text) { this.Name = labName; this.AutoSize = true; this.Location = new System.Drawing.Point(x, y); this.Size = new System.Drawing.Size(w, h); this.Text = text; return this; } } private void button1_Click(object sender, EventArgs e)//调用 { lab l = new lab(); l.CreateLab("lab", 10, 29, 20, 20, "完成"); this.Controls.Add(l);//动态添加 } 再次用的时候就不用每个属性去设置了