Main Menu help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yuvaraj

    Main Menu help

    while using menu in vb net if i clicked on one o the menu the form
    will be displayed. after that if i again clicked on that menu item i
    dont want to display the same window again.
  • rowe_newsgroups

    #2
    Re: Main Menu help

    On Feb 14, 6:14 am, Yuvaraj <yuvarajr...@gm ail.comwrote:
    while using menu in vb net if i clicked on one o the menu the form
    will be displayed. after that if i again clicked on that menu item i
    dont want to display the same window again.
    Are you saying that on a menu click you display a new instance of a
    form?

    If so you can just do this in the click handler:

    ///////////////////
    Dim f As New Form1()
    f.Show()
    ///////////////////

    That will create a new Form1 every time it's called, and not just show
    the same one on subsequent clicks.

    Thanks,

    Seth Rowe [MVP]

    Comment

    Working...