Results 1 to 10 of 10

Thread: Placing a Textbox within a Context Menu

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2003
    Location
    London
    Posts
    44

    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

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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.

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    This guy is Genius.

  4. #4

    Thread Starter
    Member
    Join Date
    Jul 2003
    Location
    London
    Posts
    44

    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

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    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

  6. #6
    Addicted Member PeteD's Avatar
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    158
    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.

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Do you have the link ??

  8. #8
    Addicted Member PeteD's Avatar
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    158

  9. #9
    Addicted Member PeteD's Avatar
    Join Date
    Jun 2003
    Location
    Sydney
    Posts
    158
    Is this what you want?
    Attached Images Attached Images  

  10. #10

    Thread Starter
    Member
    Join Date
    Jul 2003
    Location
    London
    Posts
    44

    Yes....this is the sort of thing I'm after...

    Thanks

Posting Permissions

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



Click Here to Expand Forum to Full Width