摘要:
int webHeight =0; WebBrowser web =new WebBrowser(); web.Navigate("about:blank"); while (web.ReadyState != WebBrowserReadyState.Complete) { Application 阅读全文
摘要:
/// /// 将目标路径转为image /// /// 图片路径 /// public Image LoadImage(string path) { //创建一个bitmap类型的bmp变量来读取文件。 Bitmap bmp = new Bitmap(path); //新建第二个bitmap类型的bmp2变量,我这里是根据我的程序需要设置的。 Bitmap... 阅读全文
摘要:
DataTable dt = new DataTable("Datas"); DataColumn dc = null; //dt新增列 dc=dt.Columns.Add("id", Type.GetType("System.Int32")); //课件id dc = dt.Columns.Add 阅读全文
摘要:
private List<string> FindFile(string Path) { List<string> list=new List<string>(); DirectoryInfo di = new DirectoryInfo(@"C:\Users\Administrator\Deskt 阅读全文
摘要:
using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; using System.Net; using System.Net.Security; using System.Security.Cryptography.X509Certificates; using System.... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks; namespace ConsoleAppli 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Xml; namespace ZhuoHuiScho 阅读全文
摘要:
using System.Drawing; using System.Windows.Forms; namespace ZhuoHuiSchoolroom.ZhuoHuiClass { /// /// 实现窗体内简单画笔功能 /// public class DrawClass { private Color __Color = ne... 阅读全文
摘要:
/// /// 改变鼠标指针 /// /// /// public void SetCursor(Bitmap cursor, Point hotPoint) { int hotX = hotPoint.X; int hotY = hotPoint.Y; Bitmap myNewCursor = new Bitmap(cursor.Width * 2 - hotX... 阅读全文
摘要:
--查询数据库是否存在 if exists ( select * from sysdatabases where [name]='TestDB') print 'Yes, the DB exists' else print 'No, need a new one?' --新建一个数据库 create 阅读全文