dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: opening a new form on click

  1. #1
    Eric Guest

    opening a new form on click


    I'm new with VB so I apologize if this seems really simple ....

    In my project I have two Forms created and coded. Each does what I want
    it to do EXCEPT that I want the first form, which is basically in informational
    screen with one command button to load the second form when the command button
    is clicked. Make sense? I've read and read for two days ... what am I missing?
    Thanks.

  2. #2
    Miroslav St. Jeliaskoff Guest

    Re: opening a new form on click

    Hi Eric,

    use the frmMyForm.Show method in the Click event of the button you want. Something like that:

    Private Sub Command1_Click()
    frmSecondForm.Show
    End Sub

    It automaticaly will load the form if it isn't loaded yet.


    Hope helps,
    Miroslav St. Jeliaskoff

    >
    > I'm new with VB so I apologize if this seems really simple ....
    >
    > In my project I have two Forms created and coded. Each does what I want
    > it to do EXCEPT that I want the first form, which is basically in informational
    > screen with one command button to load the second form when the command button
    > is clicked. Make sense? I've read and read for two days ... what am I missing?
    > Thanks.



  3. #3
    eric Guest

    Re: opening a new form on click


    "Miroslav St. Jeliaskoff" <jeliaskoff@earthling.net> wrote:
    >
    >
    >Hi Eric,
    >
    >use the frmMyForm.Show method in the Click event of the button you want.

    =
    >Something like that:
    >
    >Private Sub Command1_Click()
    > frmSecondForm.Show
    >End Sub
    >
    >It automaticaly will load the form if it isn't loaded yet.
    >
    >
    >Hope helps,
    >Miroslav St. Jeliaskoff
    >


    Thanks, Miroslav. That did the trick. I feel so lame!
    Thanks Again.
    Eric

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center