摘要:
private void cutScreen() { ini_init(); try { this.WindowState = FormWindowState.Minimized; //最小化当前窗口 Thread.Sleep(500);//延时2秒 if (Directory.Exists(myp 阅读全文
摘要:
public class INIClass { public string inipath; [DllImport("kernel32")] private static extern long WritePrivateProfileString(string section, string key 阅读全文
摘要:
bool conTest() { SQLConnection mycon=new SQLConnection(constring) try { mycon.Oen(); if(mycon.state==ConnectionState.Open){ messageBox.Show("OK"); ret 阅读全文
摘要:
TextView 1.设置TextView为上下可滑动模式 TextView tv=(TextView)findViewById(R.id.textview); tv.setMovemnetMethod(SrollingMovementMethod.getInstance()) android:sc 阅读全文
摘要:
select from where order by 排序 LTRIM(字符串) 取消字符串左空格 RTRIM(字符串) 取消字符串右空格 阅读全文
摘要:
bool b=a.contains(b);//a中是否包含b 阅读全文
摘要:
string dir = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); //取用户桌面路径 阅读全文
摘要:
SqlConnection sqlcon =new SqlConnection( "Data Source=.;Initial Catalog=BGS;User ID=sa");//sql连接语句 sqlcon.Open(); //连接数据库 SqlDataAdapter sqladt = new 阅读全文
摘要:
datagridview.Rows[].Cells[].value 取单元格值 datagridview.CurrentCell.RowIndex;是当前活动的单元格的行的索引DataGridView1.CurrentRow.Index 获得包含当前单元格的行的索引 datagridview.Sel 阅读全文
摘要:
using System; using System.Threading; private void swap(int x,int y) { y=interlocked.exchange(ref x,y); } //ref指定以原子操作的形式 // REF关键字百度百科http://baike.ba 阅读全文