摘要:
二进制文件转换部分: string strpath; protected void Page_Load(object sender, EventArgs e) { strpath = HttpContext.Current.Request.PhysicalApplicationPath + "1.bmp"; } public byte[] getBytes(string filePath) //图... 阅读全文
摘要:
保存: xe.InnerText=ctrl.BackColor.ToArgb().ToString();读取: ctrl.BackColor = Color.FromArgb(Convert.ToInt32(xe.InnerText)); 阅读全文
摘要:
web config 里 <appSettings> <add key="dbPath" value="data/-_-.ascx"/> <add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data source=|DataDirectory|db1.mdb;"/> <ad... 阅读全文
摘要:
devenv /resetuserdata 阅读全文
摘要:
public struct POINTAPI { public uint x; public uint y; } private enum EnumMousePointPosition { MouseSizeNone = 0, //'无 MouseSizeRight = 1, //'拉伸右边框 MouseSizeLeft = 2, //'拉伸左边框 MouseSizeBottom = 3, //'... 阅读全文
摘要:
一、文件1、读Dim FileName As String Dim fileId As Integer fileId = FreeFile()FileName = StrPath + "\**.txt"Dim FS As New System.IO.FileStream(FileName, IO.FileMode.Open)Dim SR As New System.IO.StreamReader... 阅读全文
摘要:
c#: string strCon = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=" + Application.StartupPath+ @"\**.mdb"; OleDbConnection cn = new OleDbConnection(strCon); string strsql = "Select * From 表名"; OleDbDa... 阅读全文
摘要:
分三步:第一步: private void Grid1_EnterCell(object sender, EventArgs e)//使文本框可见 { if (Grid1.ColSel > 1) { iRow = Grid1.RowSel; txt.Text = Grid1.get_TextMatrix(Grid1.RowSel, Grid1.ColSel); txt.SelectAll()... 阅读全文
摘要:
我的博客开通了。我给它起名字叫智慧树。 随着我的成长,它会逐渐变得枝繁叶茂的。 阅读全文