By default you need to check means you will have a property for the menu item. If you have to select through code means handle that in the click event of main menu item
Example if you have the following
File
|->New
|-> and so on
Under File_click event you can select the one you required to be checked as
<code> New.Checked = true;</code>
// According to your naming conventions check that to true