|
-
Apr 13th, 2003, 10:07 AM
#1
Thread Starter
Junior Member
ContextMenu Click event problem
I am trying to build a cool menu inside my program. I am building a schedule program where the user is to choose customer, my thought is to let the user enter a form with 5 text boxes. If it is a new customer he just types the info in ther, but it it is a returning customer I wan´t to have a contextmenu accesible throu right clicking inside the form. I have got so far that I load all the menu items from a database but here comes the problem. How can I determine witch item was clicked. Since you have to specify each Click event for every menuitem. I cant figure out how to do this in code. VB won´t let me add subs in a loop from a dataset. Is there a way to get the text property in the click event if you get what i mean.. Then i can check against the database ang fetch the right data.
Regards
Henrik
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
|