C#(61)
-
[DotNetBar] ToolTip
If you need to show custom tooltip for Appointments in WinForms (Windows Forms) CalendarView control you can do so by handling CalendarView.MouseEnter event to show tooltip and CalendarView.MouseLeave to hide tooltip. Following code illustrates how to show custom Balloon style tooltip: private Balloon _AppointmentBalloon = null; private void SetupAppointmentBalloon() { _AppointmentBalloon = new ..
2012.07.11 -
[WinForm] 배열선언안하고 컨트롤 찾기
헤쉬테이블로 키값을 넣어도되지만 요렇게 Controls.Find()를 써도 되넹 몰랐넹 담부터 써봐야지!!Controls.Find()
2012.06.04 -
[WinForm]람다 델리게잇 익명메소드
// 대리자 정의public delegate string aDelagateFunc(string name);// 대리자와 같은 인자를 같은 함수string otherfunc(string n){ return "hello " + n;}private void button1_Click(object sender, EventArgs e){ // 대리자를 통하여 함수를 호출 aDelagateFunc del = new aDelagateFunc(otherfunc); MessageBox.Show(del("World"));} //C# 2.0 : Inline function "anonymous Methods"public delegate string aDelagateFunc2(string name);private void but..
2012.04.16 -
[WinForm] 익명변수
public string CurrentActivity { get { return textBox1.Text; } set { if (InvokeRequired) { MethodInvoker invoker = new MethodInvoker(delegate() { textBox1.Text = value; }); Invoke(invoker); } else { textBox1.Text = value; } } }
2012.04.06 -
[WinForm] Mouse Api
mouse_event함수는 인수로 지정한 내용의 Mouse Event를 발생시킵니다.Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtaInfo As Integer)▶VB.NET 선언mouse_event(flag, x, y, cbtn, 0)▶VB.NET 호출[DllImport("user32.dll")]public static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtaIn..
2012.02.17 -
[WinForm] 크로스쓰레딩 발동잠금
CheckForIllegalCrossThreadCalls = false; 하지만 이걸 쓰면 랜덤성 문제가 발생할 수 있어요~~!!
2012.02.17