自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(21)
  • 资源 (5)
  • 收藏
  • 关注

原创 在按钮上绘制图片

using System;using System.Drawing;using System.Windows.Forms;namespace 在button上绘制图片{ public partial class Form1 : Form { public Form1() { InitializeComponent()

2012-11-19 17:13:14 380

原创 动态改变TextBox的背景色

private void textBox1_Enter(object sender, EventArgs e) { ((TextBox)sender).BackColor = Color.LightCoral; } private void textBox1_Leave(object sender, EventArgs e)

2012-11-19 16:51:36 1188

原创 DataGridView合并单元格

using System;using System.Drawing;using System.Windows.Forms;namespace 合并DataGridView单元格{ public partial class Form1 : Form { public Form1() { InitializeCompon

2012-11-19 10:19:23 732

原创 ListView中加复选框并实现全选(全不选)

using System;using System.Windows.Forms;using System.IO;namespace 带复选框的ListView{ public partial class Form1 : Form { public Form1() { InitializeComponent();

2012-11-16 16:50:33 1639

原创 ListView创建列和设置数据并保存成xml

using System;using System.Collections.Generic;using System.Text;using System.Windows.Forms;using System.IO;using System.Xml;namespace ListView控件中实现修改{ public partial class Form1 : Form

2012-11-16 11:47:06 1069

原创 ListView控件间的数据移动

using System;using System.Windows.Forms;namespace listview控件应用{ public partial class Form1 : Form { public Form1() { InitializeComponent(); this.Loa

2012-11-16 10:43:49 438

原创 winform中为CheckedListBox绑定数据

CheckedListBox一样有DataSource、DisplayMember和ValueMember属性的,只是IntelliSense不能将其智能感知出来.我们可以不理它的智能提示,自己写就可以了,只要写对了,编译也是不会报错的。using System;using System.Collections.Generic;using System.Windows.Forms;

2012-11-15 17:01:06 1364

转载 C# CHECKEDLISTBOX控件用法总结(怎样得到多选的值)

一般认为:foreach (object obj in checkedListBox1.SelectedItems)即可遍历选中的值。其实这里遍历的只是高亮的值并不是打勾的值。遍历打勾的值要用下面的代码:for (int i = 0; i {    if (checkedListBox1.GetItemChecked(i))    {        MessageB

2012-11-15 16:38:08 576

原创 RichTextBox中用指定字体和颜色高亮显示指定字符

using System;using System.Windows.Forms;using System.Text.RegularExpressions;namespace RichTextBox描红指定内容{ public partial class Form1 : Form { public Form1() { I

2012-11-15 15:34:20 2022 1

原创 c#中读写rtf文件

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.IO;

2012-11-15 13:32:20 6698

原创 c#中filedialog文件格式限制

在C#中,OpenFileDialog和SaveFileDialog的filter属性,如果想并列有多个格式,可以多个格式用 ; 隔开如:OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "RTF文件|*.rtf;*.doc|所有文件|*.*"; ofd.InitialDirect

2012-11-15 13:21:00 3133

原创 用ComboBox制作浏览器输入框效果

using System;using System.Windows.Forms;namespace ComboBox下拉控件做浏览器网址输出框{ public partial class Form1 : Form { public Form1() { InitializeComponent();

2012-11-15 09:50:12 629

原创 点击RichTextBox中的链接,在默认浏览器中打开网页

using System.Windows.Forms;using System.Diagnostics;using System;namespace RichTextBox中加超链接文字{ public partial class Form1 : Form { public Form1() { InitializeCo

2012-11-15 09:33:39 783

原创 美化ComboBox下拉

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace 美化com

2012-11-14 17:48:41 2625

原创 winform给TextBox加一个下划线

using System.Drawing;using System.Runtime.InteropServices;using System;using System.Windows.Forms;namespace TextBox控件底端显示下划线{ public partial class CustomTextBoxGroup:System.Windows.Forms.TextB

2012-11-14 16:05:24 3986 1

转载 c#拖动无边框窗体(调用API)

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Run

2012-11-13 17:28:39 429 1

原创 c#中把一个控件从一个窗体移到另一个窗体

两个不同的窗体,木有任何关系,他们的控件可以互相移来移去。下面是Form1代码,Form2中没有代码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Syst

2012-11-13 13:43:50 2639

转载 c#调用默认浏览器打开网址

System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo("http://www.baidu.com"); System.Diagnostics.Process Pro = System.Diagnostics.Process.Start(Info);

2012-11-08 09:46:28 578

转载 DevExpress DXperience Universal 11.1.6 下载+源码+编译+汉化流程+升级+替换强名

最近项目需要使用DevExpress WinForm做项目,网上看到很多教材都不错,但是缺少点综合的,这里把收集到的下载地址、安装、编译、汉化、升级的步增都写到了一起,希望能够帮到一些人,写得不好请勿口水1:下载 DevExpress DXperience Universal 11.1.6 官方安装包http://downloads.devexpress.com/e2f47f66-6c

2012-11-06 14:10:33 1635

原创 好用的winform第三方控件

最近做项目,需要用到复杂的显示方式,百度N久,找到这款个人觉得比较好的控件,记录下来,备忘!http://www.codeproject.com/Articles/23746/TreeView-with-ColumnsTreeView with ColumnsBy jkristia, 20 Feb 2008

2012-11-06 11:25:00 14689

原创 winform中限制非数字输入

/// /// 验证非数字 /// /// /// private void NumBoxValid(object sender, KeyPressEventArgs e) { int code = e.KeyChar; //8是退格,46是小数点

2012-11-05 15:42:01 550

IBM DB2 Data Server Driver+Db2连接工具+Demo

资源内容包括:IMB DB2 Data Server Driver、Db2连接工具、.net连接Db2帮助类和demo,使用的时候只要按格式设置好数据库名、服务器Ip,数据库账号、密码以及要访问的Sql语句就可能看到效果了,Demo包括MVC和控制台程序,随便一个都能用。

2021-03-19

GooFlow修改版

基于原版的Gooflow作了一些修改,根据节点类型的不同,用artdialog弹窗进行设置各项参数,开始、结束只能设置显示文字,线条可设置多个条件,其它各节点除了节点显示文字外,额外增加了是否短信通知下一环节、是否可会签、是否可结束流程、环节用户等属性。本demo没有与数据库进行交互,若有需要,请自行扩展!

2015-09-28

jmail发邮件,.net自带mail发邮件

.net中常用的两种发邮件方式,一种是用jmail,另一种是System.Net.Mail,都在里面了,有需要的朋友可以看看。

2012-02-22

正则表达式中文电子书

中文正则表达式电子书 以前要查正则都是在网页上看,有这个就方便了

2009-10-07

ajax三级联动,三级联动,联动,ajax,无刷新三级联动

ajax三级联动,三级联动,联动,ajax,无刷新三级联动

2009-02-28

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除