c#(16)
-
[콤포넌트 08.15] 01. ProgressBar [투명 레이블]
제공하는 ProgressBar는 뭐 레이블을 넣을려고 하면 꼭 투명하게 안된다. 그렇기에 어떤사람이 제공해주는 ProgressBar를 이용해서 작성하면 투명하게 할수 있다. 먼저 단계는 구성요서 클래스 추가 -> 컴포넌트 객체 생성 객체 콘트롤을 추가 하여 사용하면 된다. using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using System.Drawing.Drawing2D; using System.Drawing.Text; namespace Functionkeyboard { #region " Gradient Mode " public enum GradientMode { Vertical, V..
2011.08.15 -
[WinForm 6.22] 03. 폼닫기전에 확인하기
Form Closing Event using(admin ad=new admin()) { if(ad.ShowDialog()==DialogResult.OK) { } else { e.Cancel = true; } } 무조건 닫기 전에 질문하게 된다.
2011.06.22 -
[WinForm 6.20] 02. 데이터 STX-ETX기준으로 데이터 받기
int a = comPort.ReadByte(); real += ((char)a).ToString(); temp = string.Format("{0:x}", a); if (temp.Equals("2")) { temp = ""; while (!temp.Equals("3")) { a = comPort.ReadByte(); temp = string.Format("{0:x}", a); real += ((char)a).ToString(); } if (temp.Equals("3")) { com.ReciveStram(real);//
2011.06.20 -
[Console 04.15] 01.데이터 파일 저장
FileStream fs=new FileStream(@"d:\test.txt",FileMode.Append,FileAccess.Write); StreamWriter sw = new StreamWriter(fs, System.Text.Encoding.UTF8); sw.Write(textBox1.Text); sw.Flush(); sw.Close(); fs.Close(); 같이 하면 된다..!! 가끔 필요할때 써야지!!
2011.04.15