自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 GridView中合并单元格

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Data;using System.Web.UI.WebControls;/// ///GridViewMergeCell 合并GridView liyang 20090916/// publi

2015-04-21 16:13:19 538

转载 设置datalist每类宽度

ItemStyle-Width="100%"   ItemStyle-Height="100%">如代码:最后红色标记为设置datalist中列的宽度

2015-04-17 16:00:53 1429

转载 C#动态生成Word文档并填充数据

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

2014-12-29 14:34:09 734

转载 C# WinForm 鼠标不移动,20秒后,窗口自动关闭

namespace App{ class App { [StructLayout(LayoutKind.Sequential)] struct LASTINPUTINFO { public static readonly int SizeOf = Marshal.SizeOf(typeof(LASTINPUT

2014-12-25 10:19:04 1294

转载 鼠标移动事件

[System.Runtime.InteropServices.DllImport("user32")] private static extern int mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo); //移动鼠标 const int MOUSEEVENTF_MOVE = 0x0001;

2014-12-24 16:16:05 1418

转载 datagridview 鼠标经过某一行,高亮显示

private void taskList_CellMouseMove(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex >= 0) { if (e.RowIndex != -1 && e.ColumnIndex != -

2014-12-24 15:31:45 1198

转载 C# winform整个框体根据屏幕居中

public void SetMid() { this.SetBounds((Screen.GetBounds(this).Width / 2) - this.Width / 2, (Screen.GetBounds(this).Height / 2) - (this.Height / 2), this.Width, this.Height, Bounds

2014-12-24 09:57:19 891

转载 设置DataGridView中表头颜色

默认的DataGridView表头颜色实在不是太好看,想设置下,上google搜了一通, 都说这样设置 this.dataGridView1.ColumnHeadersDefaultCellStyle.ForeColor = Color.Red;设置了,发现没有什么效果,好像也有人有同样的问题,就是没有人给出答案 。还是在国外的一个网站上找到答案。原来要把“ "EnableHead

2014-12-24 09:00:48 494

空空如也

空空如也

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

TA关注的人

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