摘要:
listView1.Focus(); listView1.Items[0].Selected = true; 阅读全文
摘要:
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); 阅读全文
摘要:
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(); 阅读全文
摘要:
Cursor.Current = Cursors.WaitCursor;Cursor.Current = Cursors.Default; 阅读全文
摘要:
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); ... 阅读全文
摘要:
修改文件 C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.CompactFramework.Common.targets 中<TargetName="PlatformVerificationTask"Condition="'$(SkipPlatformVerification)'=='true'"><PlatformVerificationTaskPlatformFamilyName="$(PlatformFamilyName)"Pl 阅读全文
摘要:
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);}}} 阅读全文