The best and safest way is to subclass the textbox, as da_silvy has done. This way, your sure that no matter what the user does, the context menu will not come up. If you rely on the other ways, there may be a way around it.