2、找到安裝後devexpress控制項的dll(要使用的dll),路徑是「c:\program files (x86)\devexpress 2011.1\components\sources\devexpress.dll」,拷貝到自己需要的地方,以方便專案新增引用時通過「瀏覽」找到;不拷貝也可以,專案引用時選擇「專案集」>>「擴充套件」下找到。
3、在介面的「工具箱」中,新增一選項卡,命名如:「devexpress」,並右擊「選擇項」,在.net framework元件中找到需要的控制項名(可按控制項的首字元查詢),如:「defaultlookandfeel」,然後新增對應的dll,如「devexpress.utils.v11.1.dll」(若自動新增也可以不新增)。
4、向對話方塊中新增:defaultlookandfeel、comboboxedit控制項等
5、實現的具體**如下:
(1)program.cs
using system;
using system.collections.generic;
using system.linq;
using system.threading.tasks;
using system.windows.forms;
namespace testexpressskins
}}
(2)form1.cs
using system;
using system.collections.generic;
using system.componentmodel;
using system.data;
using system.drawing;
using system.linq;
using system.text;
using system.threading.tasks;
using system.windows.forms;
namespace testexpressskins
private void form1_load(object sender, eventargs e)
}}
(3)commonfunctions.cs
using devexpress.xtraeditors;
using system;
using system.collections.generic;
using system.linq;
using system.text;
using system.threading.tasks;
namespace testexpressskins
public static commonfunctions singlon()
return commfuncinstance;
}#endregion
/// /// **全部列舉出來放到乙個comboboxedit中
///
///
}public bool tmpfunc()
}}
DevExpress 使用BootStrap主題
devexpress 使用bootstrap主題 dev在16.2.4之後的版本中發布了對bootstrap主題的支援。但是採用的方式是剝離開的,也就是說dev並沒有將bootstrap的主題整合進去。在使用往常的方式直接拖拽控制項空,其樣式並不會顯示出來。參照官方的文件,需要進行下一步的處理。使用...
devexpress控制項使用筆記
chartcontrol 控制項 製作拼圖 private void createqualitative devexpress.xtracharts.chartcontrol chartcontrol1,datatable dt,string namefiledname,string countfi...
DevExpress 面板使用方法
第一步讓所有窗體都從devexpress.xtraeditors.xtraform繼承。第二步 新增兩個引用 devexpress.bonusskins.v9.2 devexpress.officeskins.v9.2 第三步 在軟體的入口program類的main函式的第一行 前加上 devexp...