|
-
Jun 20th, 2002, 02:01 AM
#1
Thread Starter
New Member
creating menus and handling events
Hi! Got a problem here.
I want to create dynamic menu-items (dim m as new...). That's no problem but how do I react on clicking these menu-items? I had created an event-handler for the _click-event for that special menu-item - no problem again. But I wasn't able to pass an index to specify the menu (like the index-value of arrays) that was clicked so i was forced to have an event-handler for each menu-item i was creating. But what if i don't know the number of menu-items the programm creates? Is there a way to pass to an event-handler an index-value to specify the menu-item that was clicked?
Hope you understand what my problem is Some sample-code would be nice
THX
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
|