外掛程式式開發小記

2022-03-16 02:22:31 字數 1207 閱讀 3479

在做外掛程式開發時,小記一下,用來備忘:

1.dev8.2的xtratabcontrol控制項如何獲得當前開啟的子窗體:xtraform frm = (xtraform)xtratabcontrol1.selectedtabpage.controls[0];

2.外掛程式開發的底層標準最好是抽象類,這樣擴充套件性好。

3.         mdiform的問題:

sonform1 form1 =

newsonform1();

form1.toplevel 

=false

;form1.parent 

=this

.clientpanel;

form1.location 

=new

point(sonformxposion[

0], 0);

form1.windowstate 

=formwindowstate.normal;

form1.show();

4.         使用dockmanager控制項實現窗體巢狀:

xtraform1 form1 = new xtraform1();

form1.autoscaledimensions = new system.drawing.sizef(6f, 12f);

form1.autoscalemode = system.windows.forms.autoscalemode.font;

form1.clientsize = new system.drawing.size(400, 200);

form1.location = new system.drawing.point(0, 0);

form1.dock = system.windows.forms.dockstyle.fill;

form1.name = "form1";

form1.text = "form1";

form1.toplevel = false;

form1.show();

this.dockmanager1.panels[0].controls.add(form1);

5.子窗體與父窗體之間的關係:

ribbonform1 form1;//父窗體

form1 = (ribbonform1)this.mdiparent;//子窗體中得到父窗體的例項

得到父窗體的例項之後就可以在子窗體中操作父窗體。

外掛程式式開發

自己做個筆記 listplugins new list 存放外掛程式的列表 string path dll資料夾路徑 string files 所有的dll陣列 foreach string dllfile in files 遍歷每乙個dll assembly ably assembly.lodef...

嵌入式開發小記

vmware共享資料夾位置 根目錄下 mnt hgfs tftp檔案傳輸 針對智龍開發板與虛擬機器之間傳輸 開發板系統中的tftp服務用法與主機中的略有區別,但原理是一樣的。基本引數 g get,獲取檔案 p put,上傳檔案 l file 本地的檔案,名為file r file 遠端的檔案,名為f...

c 外掛程式式開發

mef 原文 首先,新建乙個類庫,裡面定義介面,這裡定義兩個方法,乙個有返回值的,乙個無返回值的。using system using system.collections.generic using system.text namespace imsg 將上面的類庫生成imsg.dll,新建乙個類...