Click here to Skip to main content
15,881,882 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 885.9K   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

 
Generalwebpanelbar Pin
Mnajaf15-Jul-06 3:21
Mnajaf15-Jul-06 3:21 
General&amp;#32534;&amp;#35793;DEMO&amp;#26102;&amp;#20986;&amp;#29616;&amp;#22914;&amp;#19979;&amp;#38382;&amp;#39064; Pin
vcc_017-Oct-03 2:09
vcc_017-Oct-03 2:09 
GeneralStrongkey.snk Pin
wilson7810-Sep-03 22:39
wilson7810-Sep-03 22:39 
QuestionHow to register as COM server? Pin
W. Cheung11-Jun-03 15:07
W. Cheung11-Jun-03 15:07 
QuestionXML Config ? Pin
RandyBrown10-Apr-03 2:19
RandyBrown10-Apr-03 2:19 
GeneralChanging Fonts and Colors Pin
RandyBrown9-Apr-03 20:02
RandyBrown9-Apr-03 20:02 
GeneralRe: Changing Fonts and Colors Pin
yanhao10-Apr-03 0:21
yanhao10-Apr-03 0:21 
GeneralDemo is damaged zip Pin
mlaboria8-Apr-03 21:36
mlaboria8-Apr-03 21:36 
GeneralRe: Demo is damaged zip Pin
yanhao9-Apr-03 15:29
yanhao9-Apr-03 15:29 
GeneralRe: Demo is damaged zip Pin
fyz12316-Jun-08 3:27
fyz12316-Jun-08 3:27 
GeneralNot Render the CollectionBase in your control Pin
Esteves24-Oct-02 5:33
Esteves24-Oct-02 5:33 
Questionwhat about cross-browser compatibility ? Pin
Anonymous30-Sep-02 23:49
Anonymous30-Sep-02 23:49 
AnswerRe: what about cross-browser compatibility ? Pin
yanhao1-Oct-02 21:07
yanhao1-Oct-02 21:07 
AnswerRe: what about cross-browser compatibility ? Pin
Metaphor3-Apr-03 23:02
Metaphor3-Apr-03 23:02 
GeneralRe: what about cross-browser compatibility ? Pin
theJazzyBrain7-Apr-03 7:26
theJazzyBrain7-Apr-03 7:26 
GeneralRe: what about cross-browser compatibility ? Pin
RandyBrown8-Apr-03 2:59
RandyBrown8-Apr-03 2:59 
GeneralRe: what about cross-browser compatibility ? Pin
Wcohen6-Sep-05 17:45
Wcohen6-Sep-05 17:45 
GeneralI remove protected notes, now it is free tools Pin
yanhao27-Sep-02 4:51
yanhao27-Sep-02 4:51 
GeneralFeeding Pin
Thomas Freudenberg25-Sep-02 8:45
Thomas Freudenberg25-Sep-02 8:45 
GeneralRe: Feeding Pin
yanhao25-Sep-02 17:07
yanhao25-Sep-02 17:07 
yes, you can also use extern xml file which include WebPanelBar data, just modify .htc file.;P
GeneralRe: Feeding Pin
RandyBrown9-Apr-03 19:22
RandyBrown9-Apr-03 19:22 
GeneralA suggestion Pin
zhangzq7125-Sep-02 5:43
zhangzq7125-Sep-02 5:43 
GeneralRe: A suggestion Pin
yanhao25-Sep-02 17:09
yanhao25-Sep-02 17:09 
General&#24456;&#22909; Pin
zhangzq7125-Sep-02 5:22
zhangzq7125-Sep-02 5:22 
GeneralIt looks interesting, but... Pin
Marc Clifton25-Sep-02 0:25
mvaMarc Clifton25-Sep-02 0:25 

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.