自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

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

原创 TextBox与字符

C#中TextBox只能输入数字的代码 private void txbSleep_KeyPress(object sender, KeyPressEventArgs e)        {            if (!(Char.IsNumber(e.KeyChar) || e.KeyChar == /b))            {                e.Handled =

2008-08-02 00:28:00 208

转载 Windows消息大全

 由Thinkboy提供表A-1 Windows消息分布消息范围说 明0 ~ WM_USER – 1系统消息WM_USER ~ 0x7FFF自定义窗口类整数消息WM_APP ~ 0xBFFF应用程序自定义消息0xC000 ~ 0xFFFF应用程序字符串消息> 0xFFFF为以后系统应用保留表A-2 常用Windows消息消息名称值说 明WM_NULL 0x000

2008-08-02 00:26:00 1177

转载 Win32 API

  ------------------------------------------------------------------------    WIN32API.TXT -- Win32 API Declarations for Visual Basic               Copyright (C) 1994-98 Microsoft Corporation 

2008-08-02 00:24:00 2518

原创 合并菜单栏,工具栏,状态栏

   protected override void OnMdiChildActivate(EventArgs e)        {            base.OnMdiChildActivate(e);            #region 先撤消所有的合并项            menuStrip.SuspendLayout();            ToolStripMa

2008-08-02 00:17:00 712

原创 LLBLGen的数据库相对应SQL语句实现方法

 1、CustomerEntity customer = new CustomerEntity();定义一个空新实体CustomerEntity customer = new CustomerEntity("SOLDES");定义一个主键值为"SOLDES"的新实体2、DataAccessAdapter adapter = new DataAccessAdapter();Custome

2008-08-02 00:11:00 1407 3

转载 LLBLGen Pro 学习之----入门介绍(转载)

 http://xclw.bokee.com/viewdiary.11582114.html

2008-08-02 00:06:00 428

原创 写XML文件

     public class WriteXML    {        public static void SetXMLValue(string AppKey, string AppValue)        {            try            {                XmlDocument xDoc = new XmlDocument();         

2008-08-01 23:29:00 182

原创 读XML文件

  public static string GetXMLValueToString(string AppKey)        {            try            {                XmlDocument xDoc = new XmlDocument();                xDoc.Load(Application.StartupPath + "

2008-08-01 23:27:00 120

原创 检测NET框是否安装

     public static bool CheckIfDotNetFrameworkInstalled(string version)        {            return CheckIfDotNetFrameworkInstalled(version, 0);        }        public static bool CheckIfDotNetFramew

2008-08-01 23:24:00 149

原创 重绘系统菜单

 using System;using System.Drawing;namespace HVS.Common{    public class ChangeSystemMenuColor    {        public static void SystemMenuColor(IntPtr Hwnd, Color color)        {            MENUINFO

2008-08-01 23:21:00 336 1

原创 重绘BUTTON

 public enum ViewStyle    {        Default = 0,        Office2003 = 1,        Office2007 = 2,        VisualStudio2008=3    } using System;using System.Drawing;using System.Drawing.Drawing2D;using

2008-08-01 23:20:00 353

原创 使用反射访问属性

 using System;using System.Collections.Generic;using System.Text;namespace 使用反射访问属性{    [System.AttributeUsage(System.AttributeTargets.Class |                        System.AttributeTargets.Struct, 

2008-08-01 23:14:00 208

原创 序列化文本

 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace 序列化文本{    [Serializable]    public class Book    {        public Book()       

2008-08-01 23:11:00 185

原创 内存处理

 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;na

2008-08-01 23:11:00 226

原创 获取进程中的QQ号码

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Runtime.InteropServices;nam

2008-08-01 23:06:00 308

原创 编程中常用的SQL

  1、查询某一表的主键   sp_pkeys   tabelname2、查询数据库中的所有表的名称      select [name] from sysobjects where xtype = U and [name]       order by [name] 3、查询指定表的列名,类型,长度      select syscolumns.name AS  Co

2008-08-01 22:53:00 323

原创 自定义属性的应用

  新建解决方案WindowsFormsApplication1新建类MyAttributeusing System;namespace WindowsFormsApplication1{    [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1710:Identifie

2008-08-01 22:51:00 214

原创 回车键代替Tab键

 private void Form1_Load(object sender, EventArgs e)        {            this.KeyPreview = true;//让窗体接收键盘按键        }         protected override void OnKeyPress(KeyPressEventArgs e)

2008-08-01 22:46:00 241

空空如也

空空如也

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

TA关注的人

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