自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 SQLITE3数据库操作

SQLite3数据库操作: 建库,建表,添加,查询,修改,删除C:\>sqlite3 mydatabase.db sqlite> create table user(id integer,username text,password text); sqlite> insert into user values(1,'king','king'); sqlite> select *

2013-09-22 14:30:51 624

转载 XML操作公共类

using System;using System.IO;using System.Data;using System.Xml;using System.Xml.XPath;namespace ExecuteXml...{    public class XmlControl    ...{        protected string strXmlFil

2013-09-22 10:04:10 509

原创 VB创建VBA宏的方法

‘删除动作Dim app As New Word.ApplicationDim doc As Word.DocumentDim st As Stringapp.Visible = Falsest = "Private Sub Document_Open()" & vbCr & "Msgbox""Hi,man!" & vbCr & "End Sub"Set doc = Doc

2013-09-04 11:53:55 1131

转载 c# 窗体位置设置

// 获取屏幕分辨率int SH = Screen.PrimaryScreen.Bounds.Height;int SW = Screen.PrimaryScreen.Bounds.Width;System.Windows.Forms.SystemInformation.WorkingArea.Width 屏幕宽度System.Windows.Forms.SystemInforma

2013-07-04 08:57:59 794

转载 c# 变量的使用方法,经典

第一种方法:创建一个类,里面声明用于存储接收的字段。传的时候存储于字段中,要用的时候,直接类名.字段名 进行调用。(这种方法传递是双向的)第二种方法:1.在Form1里定义public string Name = "*****" 2. 在Form2里创建Form1对象,Form1 f = new Form1(); 然后就可以通过f.Name取

2013-07-04 08:21:25 1013

转载 C# winfrom label 控件背景颜色自定义RGB 值

最基本的东西,最匮乏的知识,悲催啊!给自己留个底儿!label.BackColor = Color.FromArgb(255, 255, 0, 0);4个数的顺序是a,r,g,ba是透明度,后面是红绿蓝

2013-07-03 07:37:15 10565

原创 c#ping功能实现,相当简单

不多说,直接上码。 public static  bool Ping(string ip)        {            System.Net.NetworkInformation.Ping p = new System.Net.NetworkInformation.Ping();            System.Net.NetworkInformation.Ping

2013-07-03 06:28:14 903

原创 c#远程桌面开发

c#使用远程桌面需要调用两个DLL1、AxInterop.MSTSCLib.dll2、Interop.MSTSCLib.dll在添加引入后在工具箱的选择项上添加Microsoft Terminal Services Control在工具箱上出现此控件后添加到窗体中。代码:            rdp3.Server = "";//你要连接的电脑的IP

2013-07-03 06:21:23 5322 4

原创 c# 直连orcale数据

不多说了,直接上码。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.OracleClient;namespace WH{    class OracleCZ    {

2013-07-01 15:54:28 573

原创 c#直连sqlserver数据库

不多说了,直接上码。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Data;namespace WH{    class SqlserverCZ    {

2013-07-01 15:53:44 842

原创 c#直连access数据库

不多说了,直接上码。using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.Data.OleDb;namespace WH{    class AccessCZ    {

2013-07-01 15:51:59 584

空空如也

空空如也

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

TA关注的人

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