.net - how to set default focus on C# Winform ToolStripMenuItem when Form Shown? -


i want set default focus on c# winform toolstripmenuitem when form shown. possible or not? if so, how do it?

in shown event of form, set focus containing toolstrip using focus(), use select() select specific tool strip item:

    private void form1_shown(object sender, eventargs e)     {         this.toolstrip1.focus();         this.toolstripmenuitem1.select();     } 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -