1 Replies - 769 Views - Last Post: 20 September 2012 - 07:00 AM Rate Topic: -----

#1 Vishal1419  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 135
  • Joined: 19-May 12

focus on a menuitem in vb.net

Posted 20 September 2012 - 12:33 AM

Hello friends,
Long its long time we met here,
I have another problem

I have many forms in my project
I have frmMain on which I have a menu
I can access all other forms from menuitems on my frmmain

Now the problem is that I want to have focus on the menuitem when other form closes and frmMain is activated
Any Ideas........
Is This A Good Question/Topic? 0
  • +

Replies To: focus on a menuitem in vb.net

#2 torind_2000  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 46
  • View blog
  • Posts: 234
  • Joined: 22-August 11

Re: focus on a menuitem in vb.net

Posted 20 September 2012 - 07:00 AM

This seems to work for me.
Dim frmMainForm As New MainForm
MainForm.Show()
MainForm.btnExit.Focus()
Me.Close()

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1