Devexpress의 Winform 의 GridControl (GridView, BandedGridView) 및 TreeList 의 Indicator Header에 버튼을 추가 하는 코드 /*// 사용법// 이미지 및 ToolTipContainer 를 인스턴스의 속성으로 노출IndicatorHeaderButton indicatorHeaderButton = new IndicatorHeaderButton(this.gc_Input);indicatorHeaderButton.IndicatorButtonClick += (ss, ee) =>{ // 버튼 클릭};*/public sealed class IndicatorHeaderButton{ private static readonly string AddBu..
WinForm
다중 모니터 사용시 주 모니터 쪽에서 응용프로그램이 시작되며 Form이 열리는 것이 불편할 수 있어 사용. private static void SetStartPosition(Form frm) { frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual; System.Windows.Forms.Screen screen = System.Windows.Forms.Screen.FromPoint(System.Windows.Forms.Cursor.Position); System.Drawing.Rectangle rectangle = screen.WorkingArea; var d = screen.WorkingArea.Location; frm.Left = d.X..