自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

转载 easyui datagrid checkbox的相关属性整理

easyui datagrid checkbox的相关属性整理DataGrid其中与选择,勾选相关DataGrid属性:DataGrid事件:方法项目代码实例链接转发DataGrid其中与选择,勾选相关DataGrid属性:singleSelect boolean 如果为true,则只允许选择一行。 falsectrlSelect boolean 在启用多行选择的时候允许使用Ctrl键+...

2019-07-23 11:06:29 695

转载 jQuery实现在一个输入框按回车键后光标跳到下一个输入框

原文百度原文百度

2017-05-02 13:39:26 16702

转载 js用正则表达式获取地址栏参数

// 采用正则表达式获取地址栏参数function GetQueryString(name) {  var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");  var r = window.location.search.substr(1).match(reg);  if (r != null) return unescape(r[2])

2017-04-17 12:10:18 380

转载 winform 窗体重新加载代码

this.Hide(); //先隐藏主窗体Form1 form1 = new Form1(); //重新实例化此窗体form1.ShowDialog();//已模式窗体的方法重新打开this.Close();//原窗体关闭原文:http://blog.sina.com.cn/s/blog_61ff136b0101klw2.html

2017-04-13 14:38:16 10154

转载 treeView Checkbox选择事件

#region 鼠标点击事件&treeView Checkbox选择事件 private void treeView_MouseClick(object sender, MouseEventArgs e) { TreeNode node = treeView.GetNodeAt(new Point(e.X, e.Y));

2017-04-05 15:18:52 6573

转载 json 转换 为 DataTable

/// /// 将json转换为DataTable /// /// 得到的json /// private DataTable JsonToDataTable(string strJson) { //转换json格式 strJson = strJso

2017-03-27 17:27:28 967

原创 winform窗体在当前显示窗口中居中

窗体在当前显示窗口中居中,两个方法: ①设置StartPositionthis.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;②Winform的Paint事件private void form1_Paint(object sender, PaintEventArgs e) {

2017-03-24 15:36:30 3645 1

转载 .NET 中的委托

.NET 中的委托委托是一种引用方法的类型。一旦为委托分配了方法,委托将与该方法具有完全相同的行为。委托方法的使用可以像其他任何方法一样,具有参数和返回值。FrmTable_Load(object sender, EventArgs e)=>this.Load += new System.EventHandler(this.FrmTable_Load);添加列private v

2017-03-23 15:23:30 443

转载 c# winform 设置winform进入窗口后在文本框里的默认焦点

进入窗口后默认聚焦到某个文本框,两种方法:①设置tabindex把该文本框属性里的tabIndex设为0,焦点就默认在这个文本框里了。this.txtUserID.TabIndex = 0;②Winform的Activated事件在Form的Activated事件中添加textBox1.Focus(), 即可获得焦点。private void Form1_Activated(object sende

2017-03-23 15:14:36 585

转载 winform关闭子窗体的同时关闭父窗体

c#,datagridview 添加DataGridView的EditingControlShowing事件。当单元格进入编辑模式时,可以处理执行该编辑控件的自定义初始化的此事件public DataGridViewTextBoxEditingControl dgvTxt = null; // 声明 一个 CellEdit private void dgv2_Editin

2017-03-23 13:44:38 2189

原创 日期格式转换

日期格式转换string _Date = DateTime.Now.ToString("yyyyMMddHHmmss");string _Date = DateTime.Now.ToString("yyyy-MM-dd");#region 日期格式转换 public string CreateTime(string _DateTime) { s

2017-03-10 16:25:03 387 1

转载 C#关闭子窗体更新父窗体(二)

父窗体public partial class MainForm. Form { public MainForm() { InitializeComponent(); } private void MainForm_Load(object sender, EventArgs e) {

2017-03-01 14:00:00 399

转载 C#关闭子窗体更新父窗体(一)

父窗体private void simpleButton1_Click(object sender, EventArgs e) { Form2 f2 = new Form2(); f2.Owner = this; DialogResult result=f2.ShowDialog(); i

2017-03-01 13:56:21 4281

转载 datagridview 限制某列只能输入数字(方法一)

c#,datagridview 添加EditingControlShowing事件public DataGridViewTextBoxEditingControl CellEdit = null;private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingE

2017-02-21 15:51:42 12827

原创 easyui-textbox和validatebox设置值和获取值

easyui-textbox和validatebox设置值和获取值 easyui.表单元素,textbox和validatebox设置值和获取值的方式的区别 text-box设置值只能使用id选择器选择表单元素,只能用textbox(“setValue”, value) 或 textbox(“seText”, value) 的方式设置值,用textbox(“getValue”) 或textbox

2017-02-17 10:34:01 2188

空空如也

空空如也

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

TA关注的人

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