본문 바로가기
300x250

winform79

DevExpress / Winform CheckEdit 컨트롤 추가하기. Winform 의 CheckBox를 DevExpress 에서는 CheckEdit라고 하는데 CheckEdit를 추가하는 방법 입니다. 또한 마우스 클릭 이벤트로 체크 일때와 언체크 일때 콘솔을 출력하도록 하였습니다. private void CreateCheckEdit() { CheckEdit checkEdit1 = new CheckEdit(); checkEdit1.Properties.Caption = "Hide Button"; checkEdit1.Name = "checkEdit1"; checkEdit1.Location = new System.Drawing.Point(35,100); checkEdit1.Width = 100; checkEdit1.MouseDown += checkEdit1_MouseDown;.. 2019. 4. 14.
DevExpress / Winform GridControl의 날짜가 출력되는 Column에서 날짜 출력 시 날짜와 시간 다 출력되도록 하기. DateTime에서 시분초까지의 값을 전달받아 GridControl의 Column에서 출력될 때에는 년월일만 출력됩니다. 날짜 출력 Column에서 시분초까지 출력되도록 하는 코드 입니다. this.gridView1.Columns[3].DisplayFormat.FormatType = DevExpress.Utils.FormatType.DateTime; this.gridView1.Columns[3].DisplayFormat.FormatString = "yyyy-mm-dd HH:MM:ss"; 네번째 Column에 날짜가 출력되도록 해놨기에 Columns[3]으로 하였습니다. 2019. 4. 10.
DevExpress / Winform DevExpress의 TextEdit에 글자수 제한하기. TextEdit에서 글자수 제한을 할 수 있습니다. textEdit1.Properties.MaxLength = 5; 위와 같이 작성하면 TextEdit에 작성가능한 글자수는 5글자 입니다.(한글도 다섯글자 작성 됩니다.) 2019. 4. 9.
DevExpress / Winform DevExpress의 TextEdit에 글 작성 시 패스워드 입력과 같이 입력 문자 안보이게 하기. DevExpress의 윈폼에서 TextEdit에 문자 입력 시 문자 대신 다른 기호가 보이도록 할 수 있습니다. textEdit1.Properties.PasswordChar = '*'; 위 코드와 같이 설정하면 되며 기호는 마음대로 변경이 가능합니다. 2019. 4. 9.
300x250