아래 스크린샷을 보면 메뉴 구성을 화면 크기에 따라 다르게 표시하는 경우가 많다 이런 경우 큰 화면에서 모든 메뉴가 보여지는 경우와 작은 화면에서 Dropdown 으로 표시되는 메뉴를 중복된 코드로 작성하면 비효율적이다. 메뉴 자체에 로직이 복잡하게 들어가거나 다른...
Category
Winform Runtime Debugging
윈폼으로 개발시 UI 디자인을 하다보면 코드를 매번 수정할 때 마다 종료 => 디버깅 재시작이 매우 번거로운 경우가 있다. 그래서 예전부터 개인적으로 사용하던 방법이 있는데, Property Grid 를 런타임에 표시해서 일부 컨트롤의 속성을 변경하면 나름 좀...
Migration to .net 6 from .net framework 4.8
.net framework 4.8 winform 소스를 최신 LTS 인 .net 6 로 마이그레이션을 시도해 봅니다..net framework 4.8 winform 소스 코드는 아래 포스트를 참조하면 됩니다. https://blog.kkomzi.net/1576...
Winform mditab usercontrol
원본 프로젝트는 vb.net 으로 만들어진 소스를 참조 했다 (MdiTabStrip - CodeProject) vb.net 프로젝트라 그대로 참조해서 써도 되지만 CSharp 에 좀 더 익숙하다 보니 CSharp 버전으로 마이그레이션 했다.추가적으로 탭에 컨텍스트...
.Net MAU sample test – .NET MAUI Check Tool
Sample github : dotnet/maui-samples: .NET 6 preview samples. Not for production use. The main branch tracks the current preview release, and develop...
.Net Standard TFM
.Net Standard 참조 : https://docs.microsoft.com/en-us/dotnet/standard/net-standard 동일한 기능을 위한 Winform 과 WPF 프로젝트를 동시 개발하는 경우 공통된 기능을 별도 프로젝트로 분리하고자 최근...
.Net WinForm Resource Share Project
구글 검색 출처 : https://stackoverflow.com/questions/14904170/is-it-possible-to-access-resources-from-a-different-project-using-the-designer-i 디자인 타임에서는...
Execute excel as another process
Excel 의 경우 여러개의 파일을 동일한 Process 가 처리하기 때문에 이미 다른 파일이 열려있는 경우 WaitForExit 가 먹히지 않음 그래서 별도 Process 로 Excel 을 실행시킴 void ExecuExcelAsAnotherProcess() {...
DevExpress XtraGrid RepositoryItemRichTextEdit AutoHeight by Enter Key
Grid 에서 RichEdit 쓸때 엔터키로 높이 자동 조절... // GridVIew 행 높이 자동 조절 활성화 gvMain.OptionsView.RowAutoHeight = true; // 특정 컬럼에 Editor 를 할당...
DevExpress XtraGrid Row Indicator Custom Draw
실행 결과는 아래 스크린샷을 참조하시면 됩니다 샘플 별도 첨부 WindowsFormsApplication2다운로드 // 1. 컬럼이 3개 있는 경우 초기화 루틴 advBandedGridView1.IndicatorWidth = 200;...