Click here to Skip to main content
15,884,472 members
Articles / Web Development / ASP.NET
Article

WebPanelBar for ASP.NET

Rate me:
Please Sign up or sign in to vote.
4.14/5 (7 votes)
3 Apr 2003 886K   2.3K   68   37
WebPanelBar for ASP.NET

Sample screenshot

Sample screenshot

Introduction WebPanelBar

WebPanelBar is powerful WinXP like menu bar. It's like Windows XP left group bar, and supports four level menu. It is just like Microsoft MSDN website left menubar. Submenu can scroll if it's too long.

C#
WebPanelBar1.Groups.Add();
WebPanelBar1.Groups[0].Caption = "First group";
WebPanelBar1.Groups[0].WebPanelBarGroupType = 
  YHControlFamily.WebPanelBar.WebPanelBarGroupTypes.FlyOut;
WebPanelBar1.Groups[0].Items.Add();
WebPanelBar1.Groups[0].Items[0].Caption = "First item";
WebPanelBar1.Groups[0].Items[0].URL = "#";
WebPanelBar1.Groups[0].Items[0].WebPanelBarItemType = 
  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutLink;

WebPanelBar1.Groups[0].Items[0].AddGroup();
WebPanelBar1.Groups[0].Items[0].Group.Caption = "SubGroup";

int i = 0;

WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
WebPanelBar1.Groups[0].Items[0].Group.Items[0].Caption = "SubMenu Item Head";
WebPanelBar1.Groups[0].Items[0].Group.Items[0].URL = "#";
WebPanelBar1.Groups[0].Items[0].Group.Items[0].WebPanelBarItemType = 
  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutHeading;

WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
WebPanelBar1.Groups[0].Items[0].Group.Items[1].Caption = 
  "Using Stored Procedures in Visual Basic .NET";
WebPanelBar1.Groups[0].Items[0].Group.Items[1].URL = "#";
WebPanelBar1.Groups[0].Items[0].Group.Items[1].WebPanelBarItemType = 
  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutSubLink;

WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
WebPanelBar1.Groups[0].Items[0].Group.Items[2].Caption = "Separator";
WebPanelBar1.Groups[0].Items[0].Group.Items[2].URL = "#";
WebPanelBar1.Groups[0].Items[0].Group.Items[2].WebPanelBarItemType = 
  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutSeparator;

for (i=3; i<30; i++)
{
    WebPanelBar1.Groups[0].Items[0].Group.Items.Add();
    WebPanelBar1.Groups[0].Items[0].Group.Items[i].Caption = "Sub Menu Item";
    WebPanelBar1.Groups[0].Items[0].Group.Items[i].URL = "#";
    WebPanelBar1.Groups[0].Items[0].Group.Items[i].WebPanelBarItemType = 
      YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutSubLink;
}

WebPanelBar1.Groups[0].Items.Add();
WebPanelBar1.Groups[0].Items[1].Caption = "Second item";
WebPanelBar1.Groups[0].Items[1].URL = "#";
WebPanelBar1.Groups[0].Items[1].WebPanelBarItemType = 
  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.FlyoutNormalLink;

WebPanelBar1.Groups.Add();
WebPanelBar1.Groups[1].Caption = "Second group";
WebPanelBar1.Groups[1].WebPanelBarGroupType = 
  YHControlFamily.WebPanelBar.WebPanelBarGroupTypes.Normal;
WebPanelBar1.Groups[1].Items.Add();
WebPanelBar1.Groups[1].Items[0].Caption = "First item";
WebPanelBar1.Groups[1].Items[0].URL = "#";
//WebPanelBar1.Groups[1].Items[0].WebPanelBarItemType = 
//  YHControlFamily.WebPanelBar.WebPanelBarItemTypes.Link;

WebPanelBar1.Groups.Add();
WebPanelBar1.Groups[2].Caption = "Third group";
//WebPanelBar1.Groups[1].WebPanelBarGroupType = 
//  YHControlFamily.WebPanelBar.WebPanelBarGroupTypes.Normal;
WebPanelBar1.Groups[2].Items.Add();
WebPanelBar1.Groups[2].Items[0].Caption = "First item";
WebPanelBar1.Groups[2].Items[0].URL = "#";
//WebPanelBar1.Groups[1].Items[0].WebPanelBarItemType = 
//   YHControlFamily.WebPanelBar.WebPanelBarItemTypes.Link;

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: It looks interesting, but... Pin
yanhao25-Sep-02 17:13
yanhao25-Sep-02 17:13 
GeneralI will release source soon. Pin
yanhao24-Sep-02 21:01
yanhao24-Sep-02 21:01 
GeneralRe: I will release source soon. Pin
SteveKing24-Sep-02 22:39
SteveKing24-Sep-02 22:39 
GeneralRe: I will release source soon. Pin
Stephane Rodriguez.25-Sep-02 1:10
Stephane Rodriguez.25-Sep-02 1:10 
GeneralRe: I will release source soon. Pin
Thesisus25-Sep-02 10:06
Thesisus25-Sep-02 10:06 
GeneralRe: I will release source soon. Pin
yanhao25-Sep-02 17:23
yanhao25-Sep-02 17:23 
GeneralRe: I will release source soon. Pin
Stephane Rodriguez.26-Sep-02 2:51
Stephane Rodriguez.26-Sep-02 2:51 
GeneralNo Source Code! Pin
Shawn Camp24-Sep-02 17:55
Shawn Camp24-Sep-02 17:55 
This might be usefull and informative if you would have provided the code in the "YHControlFamily.WebPanelBar.dll" library!

Cry | :((
GeneralRe: No Source Code! Pin
David Stone24-Sep-02 18:45
sitebuilderDavid Stone24-Sep-02 18:45 
Generaldownload demo project Pin
yanhao24-Sep-02 19:02
yanhao24-Sep-02 19:02 
GeneralRe: No Source Code! Pin
Stephane Rodriguez.24-Sep-02 20:26
Stephane Rodriguez.24-Sep-02 20:26 
GeneralRe: No Source Code! Pin
leppie27-Sep-02 9:40
leppie27-Sep-02 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.