Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Easy Date   High Bandwidth Dedicated Servers   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 11-28-2007, 03:09 AM   #1 (permalink)
v7n Mentor
 
Join Date: 01-16-07
Location: Assen, the Netherlands
Posts: 1,381
iTrader: 1 / 100%
Latest Blog:
None

Jesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to behold
Send a message via MSN to Jesse Vlasveld Send a message via Yahoo to Jesse Vlasveld
[vb] 2nd level dropdownitem (toolstrip)

Hey you all,

I'm working on a school project in visual basic, and I'm having a small issue.

I'm creating a class which features a toolstrip, which will be included in every form. But I'm having issues adding second level dropdownitems.
It's no problem adding a standard one level dropdownitems

example:
  • File
    • Open...
    • Save
    • Save as...

Which are added like this:

Code:
bestandHoofdMenuItem.DropDownItems.Add(afdrukkenMenuItem)
The issue I'm having (let's call it lack of knowledge), is how to add a second level to the dropdown menu.

like this:

  • View
    • View >
      • Toolbars

I already searched on the MSDN pages of microsft, but they all do it in design mode, which is obviously not working for me as I'm putting it in a class.

Help is appreciated.
Jesse Vlasveld is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 11-28-2007, 04:25 AM   #2 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 466
iTrader: 0 / 0%
Latest Blog:
None

Boogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the rough
Code:
afdrukkenMenuItem.addChild
or something? Not 100% sure, this for web or for windows App?

Boog's?
__________________
Great new 'June' Javascript Framework

June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-28-2007, 04:40 AM   #3 (permalink)
v7n Mentor
 
Join Date: 01-16-07
Location: Assen, the Netherlands
Posts: 1,381
iTrader: 1 / 100%
Latest Blog:
None

Jesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to behold
Send a message via MSN to Jesse Vlasveld Send a message via Yahoo to Jesse Vlasveld
It's a windows application.
I'm still looking into it, I'll let you know when I know more.
Jesse Vlasveld is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-28-2007, 05:09 AM   #4 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 466
iTrader: 0 / 0%
Latest Blog:
None

Boogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the rough
Your Answer:

Code:
public void setMenu() { ToolStripDropDownButton drop2 = new ToolStripDropDownButton("Middle"); ToolStripDropDownButton drop1 = new ToolStripDropDownButton("Top"); toolStrip1.Items.Add(drop1); drop1.DropDownItems.Add(drop2); drop2.DropDownItems.Add("Bottom"); }
Just call the setMenu() OnLoad etc. This is in c# but i can't imagine it being difficult to convert?

You're welcome

Boog's
__________________
Great new 'June' Javascript Framework

June Forums - Innovative JScripting

Price is what you pay... Value is what you get.

Last edited by Boogle : 11-28-2007 at 05:13 AM. Reason: Forogt something:
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-28-2007, 08:02 AM   #5 (permalink)
v7n Mentor
 
Join Date: 01-16-07
Location: Assen, the Netherlands
Posts: 1,381
iTrader: 1 / 100%
Latest Blog:
None

Jesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to beholdJesse Vlasveld is a splendid one to behold
Send a message via MSN to Jesse Vlasveld Send a message via Yahoo to Jesse Vlasveld
I've figured it out, and completed the toolstrip, thanks for the help (didn't use it, as I was just working on my own solution).
Jesse Vlasveld is offline  
Add Post to del.icio.us
Reply With Quote
Old 11-28-2007, 08:05 AM   #6 (permalink)
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 466
iTrader: 0 / 0%
Latest Blog:
None

Boogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the rough
Good stuff, that's goo to hear!

Boog's
__________________
Great new 'June' Javascript Framework

June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
My SEO level SAB SEO Forum 14 08-19-2007 08:07 AM
What is your IQ level? ryukenden Forum Lobby 64 07-09-2007 08:55 AM
Pr. level nuttaphong191 SEO Forum 5 05-05-2007 10:48 AM
I need help! Pre-newbie level here! Llally Coding Forum 5 02-21-2007 10:50 PM
pr level on pages tdd1984 SEO Forum 5 01-27-2007 09:59 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 02:43 AM.
© Copyright 2008 V7 Inc