C#/WinForm(35)
-
[Winform]삭제 배치파일 만들기
Msiexec /x {99121CCE-4065-484F-A712-C581C4450515} 99121CCE-4065-484F-A712-C581C4450515요건 레지스터 주소입니다.
2011.11.27 -
[Winform]Visual Studio registry capture utilty의 작동이 중지 되었습니다.
Setup 파일 만들다가 갑자기 안된다 . 설치 할려고 했는데 빌드가 안된다 제길 !!! 그래서 찾아보니 !! C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Deployment\regcap.exe 요기에서 속성눌러서 호환성에서 변경 관리자 수준도 변경 [출처] Microsoft(R) Visual Studio registry capture utility의 작동이 중지되었습니다.|작성자 미르야반지야
2011.11.25 -
[WinForm] 시리얼통신 문자에서 StopBits ,Parity 변환
public StopBits SetStopBit(string org_stopbit) { /// /// String형을 StopBit로 변환 /// StopBits Stop; switch (Uplostr(org_stopbit)) { case "None": Stop = StopBits.None; break; case "One": Stop = StopBits.One; break; case "Two": Stop = StopBits.Two; break; case "OnePointFive": Stop = StopBits.OnePointFive; break; default: Stop = StopBits.One; break; } return Stop; } public Parity SetParity(string org_..
2011.11.24 -
[WinForm 11.18] 쓰레드에 파라메터 값 넣기
처음에는 뭐 그냥 쓰레드만 사용한다... 근데 불편하다 막 뭐할려고 해도 답답함을 느끼고 해서 좀 찾아보니 역시나 아니나 다를까 인자로 넘기는 방법이 있네 new Thread(new ThreadStard((Test)).Start(); private void Test(){} 하지만 정확하게 어떤 인지인지 정하고 넘겨 주는게 아니다 단지 object 형으로 전달하게 되는데 방법은 다음과 같다. new Thread(new ParameterizedThreadStart (Test) ).Start(hello); private void Test(Object s) { string str=(string)s; } 다음 처럼 인자로 넘어가게 된다..뭐 변수가 귀찮다면 그냥 ((string)s)요렇게 해서 그냥 변수처럼 써버..
2011.11.18 -
[WinForm] 크로스 쓰레딩을 예방
delegate void MyDelegate(); //델리게이트 선언(크로스 쓰레드 해결하기 위한 용도) MyDelegate dt = delegate() {작업할 내용}; this.Invoke(dt); 요렇게 쓰면 크로스 쓰레딩을 예방할 수 잇다.
2011.11.11 -
[Winform]프레임 없이 이동
[DllImportAttribute("user32.dll")] public static extern int SendMessage(IntPtr hWnd, int Msg, int wParam, int lParam); [DllImportAttribute("user32.dll")] public static extern bool ReleaseCapture(); public const int HT_CAPTION = 0x02; public const int WM_NCLBUTTONDOWN = 0xA1; protected override void OnMouseDown(System.Windows.Input.MouseButtonEventArgs e){ ReleaseCapture(); SendMessage(new System..
2011.11.09