본문 바로가기

Application179

부드러운 Rectangle 그리기 마우스 드래그시 Rectangle 상자를 그려주는 모듈이 필요했다.. Graphics 의 DrawRectangle로 그렸더니 동작은 잘 된다.. 그러나 큰 문제가 남았다.. 잔상이 심하게 남는다. 이런.. C 이래선 되겠는가.. 구글신을 찾아갔다~~ 역시 해결책이 있다.. GDI+ 의 XOR 연산을 통한 모듈이 있다. 친절하게 클래스로 만들어져 있다. 사용방법은 간단하다. 1. cs 파일은 다운 받아 등록한다. 2. 전역 변수를 선언한다. 3. MouseDown, MouseMove, MouseUp 이벤트를 걸어준다. 해당 코드를 살펴보자 private CGdi32 gdi; private Point oldMouse, mouseDownAt; private void pnlMain_MouseMove(object.. 2009. 10. 8.
String Format for DateTime This example shows how to format DateTime using String.Format method. All formatting can be done also using DateTime.ToString method. Custom DateTime Formatting There are following custom format specifiers y (year), M (month), d (day), h (hour 12), H (hour 24), m (minute), s (second), f (second fraction), F (second fraction, trailing zeroes are trimmed), t (P.M or A.M) and z (time zone). Followi.. 2009. 9. 4.
default printer 구하기. 무지 찾아 다녔다.. 예전에 찾다가 못 찾았는데.. 마음을 비우고 다시 찾았더니 너무 쉽게 찾았다.. System.Drawing.Printing.PrinterSettings prntSettigns = new PrinterSettings(); string pkInstalledPrinters; pkInstalledPrinters = prntSettigns.PrinterName; 2009. 8. 4.
MSI Install 시 2869 에러 발생 Visual Studio 2005로 셋업 프로그램을 만들었다.. 내 PC에서 잘된다.. 다른 PC에서 설치하니 에러가 나타난다. 2869 에러가 뜬다. Vista 에서 권한 떄문에 나타나는 오류다. 그냥 XP 인데.. Vista 관련 프로그램이 깔려있나 보다. 강제로 설치하자. msiexec /i "package.msi" 2009. 7. 22.