Advertisement Jump to content
Sign in to follow this  

Default TextBox Context Menu :: WinForms

This topic is 5256 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have a TextBox on my Windows Form, which naturally has a default context menu (Copy, Paste, Select All, etc.). I wish to add a single new item to this default context menu, without having to recreate the whole thing from scratch. However I can't seem to find where the default context menu is stored. The ContextMenu property is null unless you use a custom context menu, and I can't seem to find a way to retrieve stock context menus (otherwise I'd just clone the stock one to use as a base for the custom one). I've been searching for a while and I haven't come up with anything. Does anyone know if I'm able to clone the default one or have to create a new one from scratch?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!