메인 폼의 클래스 위에 습관처럼 다른 클래스는 선언 하였다. 그리고 Form 디자인 창을 열었더니 아래와 같은 에러 메시지를 만났다.
"The class frmMain can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again."
C++에서의 습관으로 메인 클래스 위에 다른 작은 구조체나 클래스를 선언하여 사용하였는데 Windows Form을 사용하는 C# 프로그래밍에서는 Visual Studio에서 지원하는 디자이너를 사용하려면 그렇게 사용할 수가 없다. 좀 불편하군...
"The class frmMain can be designed, but is not the first class in the file. Visual Studio requires that designers use the first class in the file. Move the class code so that it is the first class in the file and try loading the designer again."
C++에서의 습관으로 메인 클래스 위에 다른 작은 구조체나 클래스를 선언하여 사용하였는데 Windows Form을 사용하는 C# 프로그래밍에서는 Visual Studio에서 지원하는 디자이너를 사용하려면 그렇게 사용할 수가 없다. 좀 불편하군...
'Dev Story > Mess' 카테고리의 다른 글
Windows gadget 만들기 - Hello Widget (0) | 2012.05.23 |
---|---|
요긴한 Tag (0) | 2011.08.01 |
C++ Builder 에 가끔 좌절한다. (0) | 2011.04.10 |
한글판 안드로이드 입문서 3rd Edition 제본하다 (3) | 2010.03.10 |
국내 개발자를 위한 bada 기술지원 설문 조사 (0) | 2010.02.19 |