Link to home
Start Free TrialLog in
Avatar of Member_2_921743
Member_2_921743Flag for United States of America

asked on

VB6 - Disable right click context menu

I have a quick question, how do I disable the right click context menu?

I already have a custom made menu for some of my textboxes already, but I want the others to be disabled.  When I say disabled, I don't mean the custom menu, I mean the main Windows menu (Cut, Copy, Paste, Select All).  I just want a plain text box with no other functionality.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_921743

ASKER

I think that's the link I was using before to create the custom context menu, but how do I disable the context menu completely?  Or am I missing/misreading something?

Does it prevent the user from copying and pasting text inside the box also?  I want to make sure that both are disabled so the user can't copy or paste using the context menu or the shortcut keys (ctrl+c, ctrl+x, ctrl+v, etc.).

zzzz...I'm lost in that code LOL.  I'm still a beginner with the Windows APIs, so I need to look into it further to understand it.
Avatar of zzzzzooc
zzzzzooc

??
>>so I need to look into it further to understand it
They never "looked" into it to understand it, which isn't my fault. The proposed solution IS the answer which I was nice enough to provide for ONLY 50 points. If you (the moderator) do not think I provided an answer, atleast provide NO refund.
Sorry about that zzz and idle.  Shouldn't have that little points in the first place.  My fault for not understanding it either.

I'll accept both answers.

Thanks.