본문 바로가기
300x250

전체 글302

DevExpress / Winform DevExpress의 TextEdit에 글 작성 시 패스워드 입력과 같이 입력 문자 안보이게 하기. DevExpress의 윈폼에서 TextEdit에 문자 입력 시 문자 대신 다른 기호가 보이도록 할 수 있습니다. textEdit1.Properties.PasswordChar = '*'; 위 코드와 같이 설정하면 되며 기호는 마음대로 변경이 가능합니다. 2019. 4. 9.
DevExpress / Winform DevExpress 에서 TextEdit의 ReadOnly 속성 부여하기 Winform에서는 textBox1.ReadOnly = true; 와 같은 방법으로 부여를 하면 되었는데 DevExpress 에서 TextEdit의 ReadOnly 속성 하려면 아래와 같이 설정하면 된다. textEdit1.Properties.ReadOnly = false; textEdit1.Properties.ReadOnly = true; 2019. 4. 9.
DevExpress / Winform 사용자 지정 이미지를 ComboBoxEdit에 넣기 ComboBoxEdit에 사용자 지정 이미지를 넣어서 사용하는 방법입니다. 코드에 Color와 HatchStyle이 적용되어 있는데 별도의 이미지가 없을 경우 사용합니다. using DevExpress.XtraEditors.Controls; using System.Collections.Generic; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace WindowsFormsApp3 { public partial class Form1 : Form { public Form1() { InitializeComponent(); CreateColorsItems(); CreateHatchStyleItems.. 2019. 4. 8.
DevExpress / Winform GridControl의 선택된 행을 또 다른 GridControl로 이동하기. 하나의 GridControl에 있는 데이터를 또 다른 GridControl로 마우스 드래그 앤 드랍으로 옮길 수 있습니다. 물론 옮겼던 데이터를 다시 원래 위치로 옮길 수 있습니다. 드래그 앤 드랍을 사용하려면 behaviorManager 컨트롤을 추가해주고 여기서 각각의 GridView에 Drag And Drop Behavior를 추가해줘야 합니다. using DevExpress.XtraGrid; using DevExpress.XtraGrid.Views.Grid; using System.Data; using System.Windows.Forms; namespace WindowsFormsApp2 { public partial class Form1 : Form { public Form1() { Initia.. 2019. 4. 7.
DevExpress / Winform GridControl에서 항목들을 모두 선택하고 선택해제 하기. GridControl에서 컨트롤 + A 를 누를 경우 전체 선택이 되지 않습니다. 항목들을 모두 선택하고 선택해제 하는 코드 입니다. using System; using System.Data; using System.Windows.Forms; namespace WindowsFormsApp2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); simpleButton1.Click += simpleButton1_Click; simpleButton2.Click += simpleButton2_Click; gridControl1.DataSource = CreateTable(); } #region CreateTable /// //.. 2019. 4. 7.
DevExpress / Winform DevExpress의 TextEdit에서 MultiLine 사용 가능한가 Winform에서는 TextBox에서 MultiLine 선택을 할 수 있는데 DevExpress에서는 MultiLine 별도로 안됩니다. 대신 여러줄 사용 하려면 MemoEdit을 사용하면 됩니다. 2019. 4. 7.
DevExpress / Winform ComboBoxEdit 목록에 마우스를 가져다 댈 때 Tooltip을 출력 ComboBoxEdit 목록에 마우스를 가져다 대면 Tooltip이 출력됩니다. using DevExpress.Utils.Win; using DevExpress.XtraEditors; using DevExpress.XtraEditors.Popup; using System; using System.Drawing; using System.Windows.Forms; namespace WindowsFormsApp2 { public partial class Form1 : Form { public Form1() { InitializeComponent(); comboBoxEdit.Popup += comboBoxEdit_Popup; comboBoxEdit.Properties.Items.Add("1"); comboBox.. 2019. 4. 7.
DB에서의 NULL과 C# 에서의 NULL의 차이 C#에서의 NULL은 (ex: string a = null) 객체에 대한 참조가 없다는 것을 의미하며 DB안에서의 NULL은 존재하지 않는 데이터베이스의 열을 의미합니다. 즉 비어 있는 하나의 값으로 인정이 됩니다. 2019. 4. 7.
300x250