- 博客(11)
- 收藏
- 关注
原创 存储过程
大虾 13:19:49CREATE PROCEDURE UserData(@index int,@name nvarchar(50),@remark nvarchar(100))AS if exists(select * from 用户信息 where 编号=@index) update 用户信息 set 名称=@name,备注=@remark where 编号=@indexelseINSERT
2007-06-13 13:24:00
612
原创 datagridview一次修改多条记录
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.OleDb;namespace dataGr
2007-06-13 12:48:00
1590
1
原创 c# 删除记事本某一行
string fileName = "E:/aa.txt"; int n = -1; StringBuilder sb = new StringBuilder(); StreamReader sr = new StreamReader(fileName, Encoding.ASCII);
2007-06-12 15:41:00
1594
原创 Visual C#常用函数和方法集汇总
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 取当前月 int 月=currentTime.Month; 1.4 取当前日 int
2007-06-12 12:47:00
546
原创 MDI里(工具栏)按钮的隐藏、移动和保存备份(xml),子窗体的调用
mdiParent窗体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 System
2007-06-12 11:56:00
1244
原创 datagridview分页
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.OleDb;namespace Window
2007-06-12 11:27:00
980
原创 使窗体不能最小化(不隐藏最小化按钮)
protected override void WndProc(ref Message m) { const int WM_SYSCOMMAND = 0x0112; const int SC_MINIMIZE = 0xF020; switch (m.Msg) {
2007-06-09 16:47:00
761
原创 加载xml
using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;using System.Xml;namespace XmlTreeTest{ /// /// Form1 的摘要说明。 ///
2007-06-08 08:50:00
554
原创 数据库连接配置
1)访问Access 2000 "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=databaseName;User ID=userName;Password=userPassWord" 2)访问ODBC数据 "Provider=MADASQL;DSN=dsnName;UID=userName;PWD=userPassword;"
2007-06-08 08:49:00
657
原创 如何建立你的第一个窗体
如何建立你的第一个窗体,希望下面的说明可以成为你快速开始的一个指引. 1. 如何设置一个From的边界 2. 如何建立一个透明的From 3. 如何设置窗体在屏幕中的位置 4. 如何使最小化和最大化按钮不可用 5. 如何使一个窗体不见 6. 如何设置使窗体成为非矩形的. 7. 如何使一个窗体在屏幕的最顶端. 8.
2007-06-08 08:47:00
2169
1
原创 datagridview的增删改查
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Data.OleDb;namespace dataG
2007-06-08 08:44:00
5542
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人