Results 1 to 10 of 10

Thread: Multiple Form Issues

  1. #1

    Thread Starter
    Member andrew5578's Avatar
    Join Date
    Dec 2003
    Posts
    51

    Multiple Form Issues

    I am having a bit of trouble with multiple forms. I have an "about" form ( describes the program ) and i dont know how to show my form. I tried this
    Code:
         frmAbout.ShowDialog
    but that didnt work. Is there something else i need to do to bring up another form? Also, once i bring up that form, how do i make it go away? Im sorry, im really new to programming...
    aka Ender

  2. #2
    Frenzied Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    1,564
    frmAbout.Show

    And it will be gone when they hit the X, or if you have an OK button, use this for it:

    Private Sub cmdOK_Click()
    Unload Me
    End Sub

  3. #3

    Thread Starter
    Member andrew5578's Avatar
    Join Date
    Dec 2003
    Posts
    51

    help?

    I tried frmAbout.Show. That didnt work. You know how when u put a period after something, a drop down menu appears? show isnt even in that menu. Is there something else wrong? Do i have to dim the form?
    aka Ender

  4. #4
    Frenzied Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    1,564
    Are you sure your form is called frmAbout?

    It works, you dont need to dim it.

  5. #5

    Thread Starter
    Member andrew5578's Avatar
    Join Date
    Dec 2003
    Posts
    51

    Yep

    Its name is frmAbout so i dont know whats going on. In the solution manager its also called frmAbout, so is there any reason for it not to work? This is vb.net by the way.
    aka Ender

  6. #6
    Frenzied Member
    Join Date
    May 2003
    Location
    So Cal
    Posts
    1,564
    Thats probably why, this is VB6 and below, ask in the .Net forum.

  7. #7

    Thread Starter
    Member andrew5578's Avatar
    Join Date
    Dec 2003
    Posts
    51

    !!!

    Oh, shnap. Im sorry. Im gonna be kicked out of here. O man, had i known. I should read more carefully... Sorry. I guess its the noob in me...
    aka Ender

  8. #8
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    Code:
    Dim frmNewAbout as new frmAbout
    frmNewAbout.ShowDialog
    It will close itself if you use the cross, or add a command button that does it using the "Close" function.

  9. #9
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi Andrew,

    Don't apologise. You ARE in the correct Forum!!
    You have obviously moved up from VB6 so you are always going to have to remember that no form exists in your runtime application until you specifically create an instance of it - just like Grimfort posted.

    Best of luck,
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  10. #10
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780
    I think an admin moved it. Them majick people we never see .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width