自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(10)
  • 收藏
  • 关注

转载 DataGridview 填写数字

private DataGridViewTextBoxEditingControl CellEdit = null; // 声明 一个 CellEdit private void dgvConsume_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)...

2013-09-22 17:29:00 127

转载 sql 合并行

sql语句: select column1,column2=stuff((select ','+column2 from table1 where column1=t1.column1 for xml path('')),1,1,'')from table1 t1group by column1 转载于:https://www.cnblogs.com/xalyf/archive/20...

2012-08-17 15:57:00 123

转载 根据鼠标坐标值,获取控件DataGridView的行、列索引值

/// <summary> /// 根据鼠标位置返回dgv的行索引与列索引 /// </summary> /// <param name="nX">当前X坐标</param> /// <param name="nY">当前Y坐标</param&g...

2012-07-06 10:01:00 388

转载 c# winform 全角转半角类

using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Windows.Forms; namespace golfmanage.BaseClass { /// 输入法帮助,全角 转...

2012-06-04 16:34:00 118

转载 c# winform 数据分页再续

1、定义调用一个父类IParentUctonrol: View Code using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ClinicDoctor.Class{ public interface IParentUseControl ...

2012-01-09 14:30:00 102

转载 c# winform 按回车,选择下一个窗体控件

项目中用到太多窗体控件,按回车选择下一个TablIndex控件方法:SelectNextControl public bool SelectNextControl( Control ctl, bool forward, bool tabStopOnly, bool nested, bool wrap ) 参数 ctl类型:System.Windows.Form...

2012-01-09 14:18:00 349

转载 数据库查询表的行标方法

slqserver: select * from (   select a.column1,a.column2,a.column3 , row_number() over(order by a.column1) as rn   from table_a ) as tb where tb.rn between 1 and 500 db2: select * from...

2011-12-01 13:37:00 146

转载 C# WinForm 添加等待界面 利用Gif图片实现

首先 创建 等待窗体 WatingForm: 其次 在WatingForm窗体下编写代码: View Code using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Lin...

2011-08-30 10:58:00 1024

转载 C# 自动转换为半角 (输入法半角/全角切换) 转载

#region 自动转换为半角//声明一些API函数 [DllImport("imm32.dll")]public static extern IntPtr ImmGetContext(IntPtr hwnd);[DllImport("imm32.dll")]public static extern bool ImmGetOpenStatus(IntP...

2011-07-04 10:24:00 532

转载 c# 拖动不规则窗体

拖动不规程窗体分三个步骤: 1、响应窗体Mouse_Down事件,记录鼠标左键按下时的坐标 2、响应窗体的Mouse_Move事件,获取当前鼠标相对屏幕的坐标减去以上获得X,Y坐标,赋值给窗体Location 3、响应窗体的Mouse_Up事件,释放拖动操作 Point _MouseOffset; bool _IsMouseDown = false;...

2011-07-04 10:20:00 91

空空如也

空空如也

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

TA关注的人

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