摘要:
编辑一下程序然后 手动打开EXE 能实现 自己关闭自己接着打开自己 private void button1_Click(object sender, EventArgs e){ Close(); string s = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName; S... 阅读全文
posted @ 2013-11-25 21:06
XE2011
阅读(217)
评论(0)
推荐(0)
摘要:
FolderBrowserDialogfolderBrowserDialog1=newFolderBrowserDialog();folderBrowserDialog1.Description="请选择一个文件夹";if(folderBrowserDialog1.ShowDialog()==DialogResult.OK)MessageBox.Show(folderBrowserDialog1.... 阅读全文
posted @ 2013-11-25 15:31
XE2011
阅读(187)
评论(0)
推荐(0)
摘要:
通过这个提示可以以快速找到问题 阅读全文
posted @ 2013-11-25 14:45
XE2011
阅读(158)
评论(0)
推荐(0)
摘要:
privatevoidbutton1_Click(objectsender,EventArgse){strings="是否要删除以下文件?\n";for(inti=0;i15){//产生1...10for(inti=1;i<11;i++){s2+=String.Format("{0,3}.{1}\n",i,str);}s2+="\n";s2+="...\n";s2+="\n";s2+=s1;... 阅读全文
posted @ 2013-11-25 13:44
XE2011
阅读(172)
评论(0)
推荐(0)
摘要:
当ListView多选时返回第一次选中的项索引正确定义一个变量=-1 表示第一次没选任何一项privateintFirstSelectedIndex=-1;更新FirstSelectedIndex的值一定要放在Mouse_Click放在 listView1_SelectedIndexChanged或listView1_ItemSelectionChanged无效privatevoidlistView1_MouseClick(objectsender,MouseEventArgse){intcount=listView1.SelectedItems.Count;if(count>0){in 阅读全文
posted @ 2013-11-25 13:32
XE2011
阅读(351)
评论(0)
推荐(0)

浙公网安备 33010602011771号