摘要: using System;using System.Text;using System.Data;using System.Data.Sql;using System.Data.SqlClient;using System.Collections;namespace GJ{ using System 阅读全文
posted @ 2018-09-18 10:23 clarklxr 阅读(87) 评论(0) 推荐(0)
摘要: ///注册函数,响应快捷键 [DllImport("user32.dll")] public static extern bool RegisterHotKey(IntPtr wnd, int id, MODKEY mode, Keys vk); [DllImport("user32.dll")] 阅读全文
posted @ 2018-08-16 16:55 clarklxr 阅读(123) 评论(0) 推荐(0)
摘要: 读取数据库 写入 阅读全文
posted @ 2018-05-23 15:20 clarklxr 阅读(220) 评论(0) 推荐(0)
摘要: private void cutScreen() { ini_init(); try { this.WindowState = FormWindowState.Minimized; //最小化当前窗口 Thread.Sleep(500);//延时2秒 if (Directory.Exists(myp 阅读全文
posted @ 2018-03-14 11:11 clarklxr 阅读(58) 评论(0) 推荐(0)
摘要: public class INIClass { public string inipath; [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key 阅读全文
posted @ 2017-07-04 11:36 clarklxr 阅读(296) 评论(0) 推荐(0)
摘要: bool conTest(){ SQLConnection mycon=new SQLConnection(constring); try { mycon.Oen(); if(mycon.state==ConnectionState.Open) { messageBox.Show("OK"); re 阅读全文
posted @ 2017-07-04 11:31 clarklxr 阅读(125) 评论(0) 推荐(0)
摘要: TextView 1.设置TextView为上下可滑动模式 TextView tv=(TextView)findViewById(R.id.textview); tv.setMovemnetMethod(SrollingMovementMethod.getInstance()) android:sc 阅读全文
posted @ 2016-12-23 21:39 clarklxr 阅读(112) 评论(0) 推荐(0)
摘要: select from where order by 排序 LTRIM(字符串) 取消字符串左空格 RTRIM(字符串) 取消字符串右空格 阅读全文
posted @ 2016-12-22 10:11 clarklxr 阅读(79) 评论(0) 推荐(0)
摘要: bool b=a.contains(b);//a中是否包含b 阅读全文
posted @ 2016-12-21 21:17 clarklxr 阅读(85) 评论(0) 推荐(0)
摘要: string dir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); //取用户桌面路径 阅读全文
posted @ 2016-12-20 11:40 clarklxr 阅读(91) 评论(0) 推荐(0)