본문 바로가기
300x250

winform79

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.
DevExpress / Winform GridView에서 마우스 우클릭 시 달력을 출력하기. GridView에서 마우스 우클릭 했을 때 달력이 출력되도록 할 수 있습니다. 출력된 달력에서 날짜 변경 시 그 행의 날짜 입력 값이 변경됩니다. public partial class Form1 : Form { public Form1() { InitializeComponent(); this.gridView1.MouseDown += GridView1_MouseDown; this.gridControl1.DataSource = CreateTable(5); } #region GridView1_MouseDown(sender, e) /// /// 마우스 클릭 했을 때 동작합니다. /// /// 이벤트 발생자 입니다. /// 이벤트 인자 입니다. private void GridView1_MouseDown(object.. 2019. 4. 16.
300x250