Hi,
again a question
i know how to retrieve file and directory data.
but now i want to transform this into a menu.
someting like this:
----------------- Main
| word | excel |
----------------- Sub
| doc1 | excel1 |
| doc2 | excel2 |
-------| excel3 |
----------
i tryed this code:
' Create instances of global MainMenu and MenuItem objects
mnuCountries = New MainMenu
mnuItemEuropeNations = New MenuItem("Some Nations of E&urope")
mnuItemItaly = New MenuItem("&Italy")
mnuItemGermany = New MenuItem("&Germany")
mnuItemFrance = New MenuItem("&France")
' Add mnuItemEuropeNations to MainMenu component's MenuItem collection
mnuCountries.MenuItems.Add(mnuItemEuropeNations)
' Add submenus to mnuItemEuropeNations
mnuItemEuropeNations.MenuItems.Add(mnuItemItaly)
mnuItemEuropeNations.MenuItems.Add(mnuItemGermany)
mnuItemEuropeNations.MenuItems.Add(mnuItemFrance)
' Make mnuCountries the form's menu
Me.Menu = mnuCountries
but how can i make the "click events"?
because i want to do something when they click on a item.
thanx!
again a question

i know how to retrieve file and directory data.
but now i want to transform this into a menu.
someting like this:
----------------- Main
| word | excel |
----------------- Sub
| doc1 | excel1 |
| doc2 | excel2 |
-------| excel3 |
----------
i tryed this code:
' Create instances of global MainMenu and MenuItem objects
mnuCountries = New MainMenu
mnuItemEuropeNations = New MenuItem("Some Nations of E&urope")
mnuItemItaly = New MenuItem("&Italy")
mnuItemGermany = New MenuItem("&Germany")
mnuItemFrance = New MenuItem("&France")
' Add mnuItemEuropeNations to MainMenu component's MenuItem collection
mnuCountries.MenuItems.Add(mnuItemEuropeNations)
' Add submenus to mnuItemEuropeNations
mnuItemEuropeNations.MenuItems.Add(mnuItemItaly)
mnuItemEuropeNations.MenuItems.Add(mnuItemGermany)
mnuItemEuropeNations.MenuItems.Add(mnuItemFrance)
' Make mnuCountries the form's menu
Me.Menu = mnuCountries
but how can i make the "click events"?
because i want to do something when they click on a item.
thanx!