본문 바로가기
반응형

개발언어/C#.NET75

자식창이 현재 활성화 되어있는지 확인하는 로직 //자식창이 현재 활성화 되어 있는지 확인 private bool FormIsExist(Type tp) { foreach (Form ff in this.MdiChildren) { if (ff.GetType() == tp) { ff.Activate(); return true; } } return false; } //매소드 호출 if (FormIsExist(frm.GetType())) { frm.Dispose(); } else { frm.MdiParent = this; frm.MinimizeBox = false; frm.MaximizeBox = false; frm.Show(); } 조금 개량해서 아래와 같이 만들후 // 폼 호출하기 private void showChildForm(Form tform) { /.. 2009. 1. 28.
Dynamic DataGridView filtering in C# 동적으로 datagridview 를 필터링 하는 방법퍼왔다 ^^ 대단하다.http://www.dotneat.net/2008/12/03/DynamicDataGridViewFilteringInC.aspxIn a few lines of code, we can convert a DataGridView control in a powerfull fully searchable control with dynamically generated filters for each column of field the DataGridView is binded to.How does it work?The DataGridControl is binded to the datasource. The user hits the button (or .. 2009. 1. 9.
datagridview 포멧형 (mask) 글수정 !!!!!! GenericDataGridView 도 datagridview에서 상속 받아 쓰므로 일반 그리드와 같구나 딴거인줄 알았는 데 . 급수정~ public partial class GenericDataGridView : DataGridView ------------ 와우! 아주 대단한것을 얻었다. http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/a92df8b2-56ce-4658-a9ae-600ef82e4852 ms 포럼에서 datagridview 에 대한 매뉴얼을 봤다 ㅋ how to 처럼 예제가 가득 ㅋㅋ columns 에 mask를 어떻게 세팅할까 고생했는 데 포럼에 저런 질문이 있다니 ㅋ 거기에 예제까.. 2009. 1. 9.
dataGridView 예제소스 참고해서 프레임웍으로 만들어서 써야지 -_-;; 링크 : http://msdn.microsoft.com/ko-kr/library/y0wfd4yz.aspx 참고사이트: http://doki.springnote.com/pages/1342466 참고할것: http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.cellformatting.aspx 예제 코드 using System; using System.Windows.Forms; public enum Title { King, Sir }; public class EnumsAndComboBox : Form { private DataGridView dataGridView1 = new Dat.. 2009. 1. 7.
반응형