上一页 1 ··· 20 21 22 23 24
摘要: listView1.Focus(); listView1.Items[0].Selected = true; 阅读全文
posted @ 2011-10-10 11:51 rui90102 阅读(182) 评论(0) 推荐(0) 编辑
摘要: Graphics graphics = CreateGraphics(); SizeF sizeF = graphics.MeasureString(lblAccount.Text, new Font(this.Font.Name,this.fontSize, FontStyle.Regular)); graphics.Dispose(); int xWidth = Convert.ToInt32(sizeF.Width); 阅读全文
posted @ 2011-09-20 11:04 rui90102 阅读(290) 评论(0) 推荐(0) 编辑
摘要: string filepath = "\\Program Files\\1.docx"; System.Diagnostics.Process p = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo pi = new System.Diagnostics.ProcessStartInfo(); pi.FileName = filepath; p.StartInfo = pi; p.Start(); 阅读全文
posted @ 2011-07-06 16:28 rui90102 阅读(286) 评论(0) 推荐(0) 编辑
摘要: Cursor.Current = Cursors.WaitCursor;Cursor.Current = Cursors.Default; 阅读全文
posted @ 2011-07-04 14:47 rui90102 阅读(184) 评论(0) 推荐(0) 编辑
摘要: private void button3_Click(object sender, EventArgs e) { Thread thread = new Thread(new ThreadStart(Send)); //模拟进度条 thread.IsBackground = true; thread.Start(); } private void Send() { int i = 0; while (i <= 100) { //显示进度 信息 this.ShowPro(i); //循环发生文件 //模拟的 i++; //模拟发送多少 Thread.Sleep(100); ... 阅读全文
posted @ 2011-06-23 17:58 rui90102 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 修改文件 C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.CompactFramework.Common.targets 中<TargetName="PlatformVerificationTask"Condition="'$(SkipPlatformVerification)'=='true'"><PlatformVerificationTaskPlatformFamilyName="$(PlatformFamilyName)"Pl 阅读全文
posted @ 2011-06-16 15:44 rui90102 阅读(1011) 评论(0) 推荐(1) 编辑
摘要: voidpictureBox1_Paint(objectsender,PaintEventArgse){foreach(ControlCinthis.Controls){if(CisLabel){LabelL=(Label)C;L.Visible=false;e.Graphics.DrawString(L.Text,L.Font,newSolidBrush(L.ForeColor),L.Left-this.pictureBox1.Left,L.Top-this.pictureBox1.Top);}}} 阅读全文
posted @ 2011-06-16 15:25 rui90102 阅读(944) 评论(2) 推荐(1) 编辑
上一页 1 ··· 20 21 22 23 24