• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
快乐小精灵
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2
2009年5月21日
图片的二进制转换
摘要: 二进制文件转换部分: string strpath; protected void Page_Load(object sender, EventArgs e) { strpath = HttpContext.Current.Request.PhysicalApplicationPath + "1.bmp"; } public byte[] getBytes(string filePath) //图... 阅读全文
posted @ 2009-05-21 15:59 快乐小精灵 阅读(1592) 评论(1) 推荐(0)
2009年5月14日
xml中颜色的保存及读取
摘要: 保存: xe.InnerText=ctrl.BackColor.ToArgb().ToString();读取: ctrl.BackColor = Color.FromArgb(Convert.ToInt32(xe.InnerText)); 阅读全文
posted @ 2009-05-14 09:50 快乐小精灵 阅读(251) 评论(0) 推荐(0)
aspnet连数据库
摘要: 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... 阅读全文
posted @ 2009-05-14 09:45 快乐小精灵 阅读(172) 评论(0) 推荐(0)
VS2005重新设置命令
摘要: devenv /resetuserdata 阅读全文
posted @ 2009-05-14 09:42 快乐小精灵 阅读(159) 评论(0) 推荐(0)
2009年5月12日
移动窗体上的控件,鼠标跟随,动态改变
摘要: public struct POINTAPI { public uint x; public uint y; } private enum EnumMousePointPosition { MouseSizeNone = 0, //'无 MouseSizeRight = 1, //'拉伸右边框 MouseSizeLeft = 2, //'拉伸左边框 MouseSizeBottom = 3, //'... 阅读全文
posted @ 2009-05-12 16:38 快乐小精灵 阅读(604) 评论(0) 推荐(0)
文件操作
摘要: 一、文件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... 阅读全文
posted @ 2009-05-12 16:23 快乐小精灵 阅读(167) 评论(0) 推荐(0)
数据库连接
摘要: c#: string strCon = "Provider=Microsoft.Jet.OleDb.4.0;Data Source=" + Application.StartupPath+ @"\**.mdb"; OleDbConnection cn = new OleDbConnection(strCon); string strsql = "Select * From 表名"; OleDbDa... 阅读全文
posted @ 2009-05-12 16:05 快乐小精灵 阅读(156) 评论(0) 推荐(0)
文本框跟随表格控件编辑
摘要: 分三步:第一步: 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()... 阅读全文
posted @ 2009-05-12 15:55 快乐小精灵 阅读(278) 评论(0) 推荐(0)
智慧树
摘要: 我的博客开通了。我给它起名字叫智慧树。 随着我的成长,它会逐渐变得枝繁叶茂的。 阅读全文
posted @ 2009-05-12 15:09 快乐小精灵 阅读(240) 评论(0) 推荐(0)
上一页 1 2
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3