CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2002
    Posts
    18

    Hiding the context menu

    1. "How do i deactivate the default menu (context menu) of windows when i run my program!!! for example. during runtime when i Right Click on any text box it pops up the default menu of windows (cut,copy,past,slect etc). I want that no menu should be displayed.
    Whats the solution for the same?

  2. #2
    Join Date
    Sep 2001
    Location
    Québec, Canada
    Posts
    1,923
    CodeGuru VB FAQ Visual Basic Frequently Asked Questions
    VB Code color Tool to color your VB code on CodeGuru
    Before you post Importants informations to know before posting

  3. #3
    Join Date
    Mar 2002
    Posts
    19

    disable context menu

    only way to disable context menu
    is use Rich textbox instead textbox
    and set property autoverbmenu to false
    then no context menu will be displayed

    and for simple textbox
    right code in mouseup event for vbrightbutton like

    if Button=VbRightButton then
    msgbox "Hello",vbInformation
    endif
    by doing this context menu will be killed

    try this and tell me how usefule it is

    Atul

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

Featured