///
/// 開啟窗體陣列
///
private static arraylist formopenlist = new arraylist();
///
/// 開啟視窗
///
///
public static void openformlist(system.windows.forms.form f) }
formopenlist.add(f);
f.formclosed += new system.windows.forms.formclosedeventhandler(closeformlist);
f.show();
} catch (exception ex)
}///
/// 關閉時,請呼叫
///
///
public static void closeformlist(object sender, system.windows.forms.formclosedeventargs e)
public static void showformlist() }
///
/// 隱藏視窗
///
public static void hideformlist() }
///
/// 清空窗體陣列列表
///
public static void clearformlist()
C WinForm窗體的管理
c winform窗體的管理 1.api申明 將指定的應用程式視窗標題欄上的標題複製放入緩衝器 dllimport user32.dll private static extern intgetwindowtext inthwnd,stringbuilder title,intsize 列舉出螢幕上...
C 子窗體重新整理父窗體
子窗體 from2 重新整理父窗體 from1 父窗體中有重新整理方法 refersh 1.所有權法 from1中 form2 f2 new form2 f2.owner this f2.show form2中 form1 f1 form1 this.owner f1.refersh 2.自身傳遞法...
C 文字窗體
system.runtime.interopservices.dllimport gdi32 private static extern intptr createfont int h,int w,int e,int o,int fw,int i,int u,int s,int c,int op,i...