Can someone explain GetMenu and GetSubMenu and how do they work?

Even better if someone shows me an example on how to get the textbox's popup menu with it.

I can get the menu on the form but i can't get the popup menus on user controls.