본문 바로가기
300x250

C#/DevExpress58

DevExpress / Winform CheckedComboBoxEdit에 열겨형 값 표시하기. CheckedComboBoxEdit에 열겨형 값을 표시할 수 있습니다. using DevExpress.XtraEditors; using System; using System.Windows.Forms; namespace WindowsFormsApp4 { public partial class Form1 : Form { /// /// Color 열거형 입니다. /// enum MyColors { None = 0x00, Black = 0x01, White = 0x02, Blue = 0x04, Yellow = 0x08, Green = Blue | Yellow } #region Form1() /// /// 생성자 입니다. /// public Form1() { InitializeComponent(); this.che.. 2019. 4. 17.
DevExpress / Winform ComboBoxEdit 클래스 ComboBoxEdit의 목록에 마우스를 가져다 대었을 때 선택된 목록의 글씨 Bold 처리 하기. ComboBoxEdit의 목록에 마우스를 대었을 때 Bold 처리 할 수 있습니다. #region comboBoxEdit1_DrawItem(sender, e) /// /// 사용자 지정 그림을 수행합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void comboBoxEdit1_DrawItem(object sender, ListBoxDrawItemEventArgs e) { if ((e.State & DrawItemState.Selected) > 0) { Font boldFont = new Font(e.Appearance.Font.FontFamily, e.Appearance.Font.Size, FontStyle.Bold); e.Graphics.DrawString(e.. 2019. 4. 17.
DevExpress / Winform TextEdit Class TextEdit에 숫자 값에 서식 적용하기. TextEdit 컨트롤에 입력 된 숫자의 서식을 변경할 수 있습니다. EditMask 값을 변경해주면 됩니다. using System; using System.Windows.Forms; namespace WindowsFormsApp4 { public partial class Form1 : Form { #region Form1() /// /// 생성자 입니다. /// public Form1() { InitializeComponent(); CreateTextEdit(); } #endregion #region CreateTextEdit() /// /// 텍스트 에디트 컨트롤을 생성합니다. /// private void CreateTextEdit() { this.textEdit1.Location = new Sy.. 2019. 4. 17.
DevExpress / Winform TextEdit Class TextEdit에 날짜, 시간 값에 서식 적용하기. TextEdit 컨트롤에 날짜 혹은 시간 값의 서식을 변경 할 수 있습니다. EditMask 값을 변경해주면 날짜 / 시간 출력 방법을 변경 할 수 있습니다. using System; using System.Windows.Forms; namespace WindowsFormsApp4 { public partial class Form1 : Form { #region Form1() /// /// 생성자 입니다. /// public Form1() { InitializeComponent(); CreateTextEdit(); } #endregion #region CreateTextEdit() /// /// 텍스트 에디트 컨트롤을 생성합니다. /// private void CreateTextEdit() { this... 2019. 4. 17.
300x250