随笔分类 -  WINDOWS FORM

摘要:两种方式 public static void ApplicationRestart() { mutex.Close(); Application.Exit(); Application.Restart(); Environment.Exit(0); } public static void ProcessRestart() { mutex.Close(); Proces... 阅读全文
posted @ 2012-09-28 14:35 I'm CY 阅读(241) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2010-01-07 23:05 I'm CY 阅读(1175) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-11-06 23:00 I'm CY 阅读(328) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using DevExpress... 阅读全文
posted @ 2008-07-02 16:20 I'm CY 阅读(1634) 评论(1) 推荐(0)
摘要:整理的对PrintControl进行设置的代码 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using DevE... 阅读全文
posted @ 2008-07-02 14:25 I'm CY 阅读(1565) 评论(0) 推荐(0)
摘要:在Win应用中,经常会遇到这样的应用,Form2打开时,隐藏Form1,Form2关闭时,显示Form1 可以这样处理 1XtraForm2 frm = new XtraForm2(); 2this.Visible = false; 3frm.ShowDialog(); 4this.Visible = true; 对于MDI中的窗体可以这样处理 1FRM frm = new FRM(); 2f... 阅读全文
posted @ 2008-04-22 17:17 I'm CY 阅读(248) 评论(0) 推荐(0)