|
-
Jul 6th, 2003, 04:53 AM
#1
Thread Starter
Member
Placing a Textbox within a Context Menu
Hi
Is it possible to add a Textbox to a context menu so that when I activate the menu through a mouse right click event, I can enter a value into the textbox, and pass it back to the form?
Ideally I would like it to display a right click menu similar to the one seen in the MS Access datasheet right click menu.
Thanks
-
Jul 6th, 2003, 02:14 PM
#2
I think the only way you could do that is by making a form that looks like your menu and showing that on right click instead of a normal context menu.
-
Jul 6th, 2003, 02:17 PM
#3
Sleep mode
-
Jul 7th, 2003, 03:18 AM
#4
Thread Starter
Member
Ahhhhhhh
I was affraid that that was going to be the answer. It just means that I have to create a whole new class for this action.
Cheers
-
Jul 7th, 2003, 11:57 AM
#5
Sleep mode
Well , If I were you , I would definitely go for the suggestion Edneeis mentioned . Otherwise , go for subclassing . I imagine it needs lots of work . I dunno if I'm correct here or not but you can try to use some API Function that set a textbox on a menuitem and depend on SendMessage API . Never done such this thing before
-
Jul 7th, 2003, 12:09 PM
#6
Addicted Member
I use the 3rd party DevComponents DotNetbar suite, and you can add a textbox or a combo to their context menu's. It is written in c# so obvously it can be done in .net. Don't know how though sorry.
-
Jul 7th, 2003, 12:16 PM
#7
Sleep mode
Do you have the link ??
-
Jul 7th, 2003, 12:31 PM
#8
Addicted Member
-
Jul 7th, 2003, 12:34 PM
#9
-
Jul 8th, 2003, 02:54 AM
#10
Thread Starter
Member
Yes....this is the sort of thing I'm after...
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
|