|
-
Apr 16th, 2003, 06:19 AM
#1
Thread Starter
Lively Member
Component 1 Web Menu's ??? asp.net
if there's n e body using this control can u tell me how to create sub menus @ runtime as im proper stuck !
safe
optimus
-
Apr 25th, 2003, 06:22 AM
#2
Thread Starter
Lively Member
ok so ... i've got the control and a sample thats written in C# could n e one convert this code to vb code for me ?
there's only about 20 lines or so ...
-
Apr 25th, 2003, 06:24 AM
#3
Thread Starter
Lively Member
private void c1miAddSubmenu_Click(object sender, System.EventArgs e)
{
C1MenuItem it = sender as C1MenuItem;
it.AddSubMenu();
it.SubMenu.Width = new Unit(160);
it.SubMenu.Font.Size = FontUnit.Smaller;
it.SubMenu.AddItem("New item 1.1");
it.SubMenu.AddItem("New item 1.2");
C1MenuItem it2 = it.SubMenu.AddItem("New item 1.3");
it2.AddSubMenu();
it2.SubMenu.AddItem("New item 2.1");
it2.SubMenu.AddItem("New item 2.2");
C1MenuItem it3 = it2.SubMenu.AddItem("New item 2.3");
it3.AddSubMenu();
it3.SubMenu.AddItem("New item 3.1");
it3.SubMenu.AddItem("New item 3.2");
it3.SubMenu.AddItem("New item 3.3");
}
private void c1miAddItems_Click(object sender, System.EventArgs e)
{
C1MenuItem it = sender as C1MenuItem;
C1MenuBase menu = it.Parent as C1MenuBase;
menu.AddItem("New item 0.1");
menu.AddItem("New item 0.2");
menu.AddItem("New item 0.3");
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|