본문 바로가기
300x250

전체 글302

DevExpress / Winform GridLookUpEdit 컨트롤에 새로운 값을 추가하기. GridLookUpEdit 컨트롤에 새로운 값을 추가할 수 있습니다. 기존의 존재하는 값을 사용하거나 새로운 문자열을 입력할 수 있습니다. using DevExpress.XtraEditors; using System; using System.Collections.Generic; using System.Windows.Forms; namespace WindowsFormsApp4 { public partial class Form1 : Form { #region Form1() /// /// 생성자 입니다. /// public Form1() { InitializeComponent(); InitLookUpEdit(); InitGridLookUpEdit(); } #endregion #region InitLookUpE.. 2019. 4. 18.
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.
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.
DevExpress / Winform CheckedListBoxItem 컨트롤 추가하기. 여러개의 항목을 선택 및 해제 할 수 있는 CheckedListBoxItem컨트롤을 추가하는 방법 입니다. CheckedListBoxItem[] items = { new CheckedListBoxItem("January", false), new CheckedListBoxItem("February", false), new CheckedListBoxItem("March", true), new CheckedListBoxItem("April", false), new CheckedListBoxItem("May", false), new CheckedListBoxItem("June", true), new CheckedListBoxItem("July", true), new CheckedListBoxItem("Augus.. 2019. 4. 15.
DevExpress / Winform LookUpEdit 컨트롤에서 NULL 값에 텍스트 입력하기. LookUpEdit.Properties.NullText 를 통하여 Null 값을 나타내는 텍스트를 가져 오거나 설정할 수 있습니다. public class CityInfo { public int ID { get; set; } public string City { get; set; } public string Country { get; set; } public string Region { get; set; } } List Persons = new List(); List Cities = new List(); CreateData(); LookUpEdit lookUpEdit = new LookUpEdit(); lookUpEdit.Parent = this; lookUpEdit.Location = new Syste.. 2019. 4. 15.
300x250