資源簡介
漂亮的NavBarControl控件,簡單易用,包含詳細的使用說明

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Drawing;
using?System.Data;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
namespace?NavBarControl
{
????public?partial?class?GroupControl?:?UserControl
????{
????????public?GroupControl()
????????{
????????????InitializeComponent();
????????}
????????private?bool?_AutoExpaned;
????????public?int?_py?=?45;
????????private?List- ?_Items;
????????public?List- ?Items
????????{
????????????get?{?return?_Items;?}
????????????set
????????????{
????????????????_Items=value;
????????????????foreach(item?itm?in?_Items)
????????????????{
????????????????????ItemControl?itc?=?new?ItemControl();
????????????????????if?(itm.Image?!=?null)
????????????????????{
????????????????????????itc.Image?=?itm.Image;
????????????????????}
????????????????????if?(itm.Caption?!=?null)
????????????????????{
????????????????????????itc.Caption?=?itm.Caption;
????????????????????}
????????????????????if?(itm._Font?!=?null)
????????????????????{
????????????????????????itc._Font?=?itm._Font;
????????????????????}
????????????????????if?(itm.formname?!=?null)
????????????????????{
????????????????????????itc.formname?=?itm.formname;
????????????????????}
????????????????????itc.Location?=?new?Point(0?_py);
????????????????????itc.Name?=?“items“;
????????????????????itc.ItemClick?+=?new?ItemControl.ItemClickHandler(itc_ItemClick);
????????????????????itc.Parent?=?this;
????????????????????if?(this.Width?????????????????????{
????????????????????????this.Width?=?itc.Width;
????????????????????????this.groupHead1.Width?=?this.Width;
????????????????????}
????????????????????_py?+=?itc.Height;
????????????????}
????????????????this.Height?=?Expaned???_py?:?45;
????????????????this.Refresh();
????????????}
????????}
????????public?string?Capition
????????{
????????????get?{?return?this.groupHead1.Capiton;?}
????????????set
????????????{
????????????????this.groupHead1.Capiton?=?value;
????????????????this.Width?=?this.groupHead1.Width;
????????????}
????????}
????????public?Bitmap?Image
????????{
????????????get
????????????{
????????????????return?(Bitmap)this.groupHead1.Image;
????????????}
????????????set
????????????{
????????????????this.groupHead1.Image?=?value;
????????????}
????????}
????????public?bool?Expaned
????????{
????????????get
????????????{
????????????????return?this.groupHead1.Expaned;
????????????}
????????????set
????????????{
????????????????this.groupHead1.Expaned?=?value;
????????????????if?(!value)
????????????????{
????????????????????this.Height?=?45;
????????????????}
????????????}
????????}
????????public?void?SetExpaned(bool?exp)
????????{
????????????if?(!exp)
????????????{
????????????????this.Height?=?45;
????????????}
????????????else
????????????{
????????????????this.Height?=?_py;
????????????}
??
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3574??2014-06-25?18:08??NavBarControl\GroupControl.cs
?????文件???????2387??2014-06-25?14:46??NavBarControl\GroupControl.Designer.cs
?????文件???????6537??2014-06-25?14:46??NavBarControl\GroupControl.resx
?????文件???????2928??2014-06-25?18:07??NavBarControl\GroupHead.cs
?????文件???????5977??2014-06-25?16:21??NavBarControl\GroupHead.Designer.cs
?????文件???????8258??2014-06-25?16:21??NavBarControl\GroupHead.resx
?????文件???????2909??2014-06-25?17:34??NavBarControl\ItemControl.cs
?????文件???????3226??2014-06-25?17:33??NavBarControl\ItemControl.Designer.cs
?????文件???????5817??2014-06-25?17:33??NavBarControl\ItemControl.resx
?????文件???????4448??2014-06-25?18:36??NavBarControl\NavBar.cs
?????文件???????1357??2014-06-24?23:59??NavBarControl\NavBar.Designer.cs
?????文件???????5817??2014-06-24?23:59??NavBarControl\NavBar.resx
?????文件???????4597??2014-06-25?18:31??NavBarControl\NavBarControl.csproj
?????文件????????642??2014-06-25?17:53??NavBarControl\NavBarEntity.cs
?????文件??????10301??2014-06-25?14:55??NavBarControl\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6239??2014-06-25?18:37??NavBarControl\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????849??2014-06-25?18:14??NavBarControl\obj\Debug\NavBarControl.csproj.FileListAbsolute.txt
?????文件???????1333??2014-06-25?18:14??NavBarControl\obj\Debug\NavBarControl.csproj.GenerateResource.Cache
?????文件??????24576??2014-06-25?18:37??NavBarControl\obj\Debug\NavBarControl.dll
?????文件????????779??2014-06-25?18:31??NavBarControl\obj\Debug\NavBarControl.GroupControl.resources
?????文件???????2120??2014-06-25?18:31??NavBarControl\obj\Debug\NavBarControl.GroupHead.resources
?????文件????????180??2014-06-25?18:31??NavBarControl\obj\Debug\NavBarControl.ItemControl.resources
?????文件????????180??2014-06-25?18:31??NavBarControl\obj\Debug\NavBarControl.NavBar.resources
?????文件??????48640??2014-06-25?18:37??NavBarControl\obj\Debug\NavBarControl.pdb
?????文件???????3070??2014-06-25?18:31??NavBarControl\obj\Debug\NavBarControl.Properties.Resources.resources
?????文件???????4608??2014-06-24?18:47??NavBarControl\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件???????1358??2014-06-24?17:55??NavBarControl\Properties\AssemblyInfo.cs
?????文件???????4358??2014-06-24?18:47??NavBarControl\Properties\Resources.Designer.cs
?????文件???????6937??2014-06-24?18:47??NavBarControl\Properties\Resources.resx
?????文件???????1339??2014-06-24?18:12??NavBarControl\Resources\DSwarr.png
............此處省略13個文件信息
- 上一篇:VB+opengl畫任意三維圖
- 下一篇:學生信息管理系統(vb+access實現)
評論
共有 條評論