Consulting

Results 1 to 3 of 3

Thread: How to add context menu for control (textbox)?

  1. #1
    VBAX Regular
    Joined
    Aug 2007
    Posts
    66
    Location

    How to add context menu for control (textbox)?

    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.

  2. #2
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    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.

  3. #3
    VBAX Regular
    Joined
    Aug 2007
    Posts
    66
    Location
    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.
    Last edited by akokin; 04-05-2008 at 12:26 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •