Click here to Skip to main content
Click here to Skip to main content

WebPanelBar for ASP.NET

, 3 Apr 2003
Rate this:
Please Sign up or sign in to vote.
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.

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

Share

About the Author

yanhao
Web Developer
China China
No Biography provided

Comments and Discussions

 
Generalwebpanelbar PinmemberMnajaf15-Jul-06 4:21 
General&amp;#32534;&amp;#35793;DEMO&amp;#26102;&amp;#20986;&amp;#29616;&amp;#22914;&amp;#19979;&amp;#38382;&amp;#39064; Pinmembervcc_017-Oct-03 3:09 
GeneralStrongkey.snk Pinmemberwilson7810-Sep-03 23:39 
QuestionHow to register as COM server? PinmemberW. Cheung11-Jun-03 16:07 
QuestionXML Config ? PinmemberRandyBrown10-Apr-03 3:19 
GeneralChanging Fonts and Colors PinmemberRandyBrown9-Apr-03 21:02 
GeneralRe: Changing Fonts and Colors Pinmemberyanhao10-Apr-03 1:21 
GeneralDemo is damaged zip Pinmembermlaboria8-Apr-03 22:36 
GeneralRe: Demo is damaged zip Pinmemberyanhao9-Apr-03 16:29 
GeneralRe: Demo is damaged zip Pinmemberfyz12316-Jun-08 4:27 
GeneralNot Render the CollectionBase in your control PinmemberEsteves24-Oct-02 6:33 
Questionwhat about cross-browser compatibility ? PinsussAnonymous1-Oct-02 0:49 
AnswerRe: what about cross-browser compatibility ? Pinmemberyanhao1-Oct-02 22:07 
AnswerRe: what about cross-browser compatibility ? PinmemberMetaphor4-Apr-03 0:02 
GeneralRe: what about cross-browser compatibility ? PinmembertheJazzyBrain7-Apr-03 8:26 
GeneralRe: what about cross-browser compatibility ? PinmemberRandyBrown8-Apr-03 3:59 
GeneralRe: what about cross-browser compatibility ? PinmemberWcohen6-Sep-05 18:45 
GeneralI remove protected notes, now it is free tools Pinmemberyanhao27-Sep-02 5:51 
GeneralFeeding PinmemberThomas Freudenberg25-Sep-02 9:45 
GeneralRe: Feeding Pinmemberyanhao25-Sep-02 18:07 
GeneralRe: Feeding PinmemberRandyBrown9-Apr-03 20:22 
GeneralA suggestion Pinmemberzhangzq7125-Sep-02 6:43 
GeneralRe: A suggestion Pinmemberyanhao25-Sep-02 18:09 
General&#24456;&#22909; Pinmemberzhangzq7125-Sep-02 6:22 
GeneralIt looks interesting, but... PinmemberMarc Clifton25-Sep-02 1:25 
GeneralRe: It looks interesting, but... Pinmemberyanhao25-Sep-02 18:13 
GeneralI will release source soon. Pinmemberyanhao24-Sep-02 22:01 
GeneralRe: I will release source soon. PinmemberSteveKing24-Sep-02 23:39 
GeneralRe: I will release source soon. PinmemberStephaneRodriguez25-Sep-02 2:10 
GeneralRe: I will release source soon. PinmemberPaul Menefee25-Sep-02 11:06 
GeneralRe: I will release source soon. Pinmemberyanhao25-Sep-02 18:23 
GeneralRe: I will release source soon. PinmemberStephaneRodriguez26-Sep-02 3:51 
GeneralNo Source Code! PinmemberShawn Camp24-Sep-02 18:55 
GeneralRe: No Source Code! PinmemberDavid Stone24-Sep-02 19:45 
Generaldownload demo project Pinmemberyanhao24-Sep-02 20:02 
GeneralRe: No Source Code! PinmemberStephaneRodriguez24-Sep-02 21:26 
GeneralRe: No Source Code! Pinmemberleppie27-Sep-02 10:40 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.141220.1 | Last Updated 4 Apr 2003
Article Copyright 2002 by yanhao
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid