PDA

View Full Version : How to add context menu for control (textbox)?



akokin
04-04-2008, 03:54 AM
Hello.
I create into VBA (Word) one form (UserForm) and add to it TextBox. Option MultiLine is True. But this textbox have not standart of context menu (items: Cut, Insert, Paste ...).
It's possible or not for textbox add contect menu? If yes then how?
Thank tou.

fumei
04-04-2008, 06:34 AM
No, it is not possible. At least not in the sense you are asking about. A textbox on a userform does not have a right click context-sensitive menu.

There is no relation to MultiLine = True. Why do you mention that?

Keyboard accelerators (Ctrl-C, Ctrl-V) work in textboxes.

akokin
04-05-2008, 12:13 AM
Hello Gerry.
What a pity! But there is the more control RichTx.ocx. I dig up (or "dug up" for past ???) found it and registеr it to my system (XP) and insert new control into my form. It's OK.

Only I don't know how to add to this control context menu.