Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Using frm.Show option

Using frm.Show option

Scheduled Pinned Locked Moved Visual Basic
helpquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi, I have some weird problem and being new to VB I have no idea why it does not work. I created a splash form with a login button. With a successful login the code goes frmSplash.Hide frmMain.Show This works, now I am on frmMain.Show. On this form I have 3 command buttons. All I want to do after any command button hit is do frmMain.Hide then i.e. frmAdmin.Show. Well .Show is not available only ShowWhatsThis? I do not get the frmAdmin to display and I have no clue as to why. What did I miss? Thanks samantha :mad:

    M M M 4 Replies Last reply
    0
    • L Lost User

      Hi, I have some weird problem and being new to VB I have no idea why it does not work. I created a splash form with a login button. With a successful login the code goes frmSplash.Hide frmMain.Show This works, now I am on frmMain.Show. On this form I have 3 command buttons. All I want to do after any command button hit is do frmMain.Hide then i.e. frmAdmin.Show. Well .Show is not available only ShowWhatsThis? I do not get the frmAdmin to display and I have no clue as to why. What did I miss? Thanks samantha :mad:

      M Offline
      M Offline
      Michael P Butler
      wrote on last edited by
      #2

      I think you'll have to post some code as I can't see how you can be getting the .ShowWhatsThis and not .Show for a Form. How did you create the frmAdmin, using the wizard? If you used the wizard what type of Form did you create? Michael :-)

      1 Reply Last reply
      0
      • L Lost User

        Hi, I have some weird problem and being new to VB I have no idea why it does not work. I created a splash form with a login button. With a successful login the code goes frmSplash.Hide frmMain.Show This works, now I am on frmMain.Show. On this form I have 3 command buttons. All I want to do after any command button hit is do frmMain.Hide then i.e. frmAdmin.Show. Well .Show is not available only ShowWhatsThis? I do not get the frmAdmin to display and I have no clue as to why. What did I miss? Thanks samantha :mad:

        M Offline
        M Offline
        markmyb
        wrote on last edited by
        #3

        BOYAKASSHAA!! I'ee agree with Micheal... :confused: Need more input Confusios say "Man who run in front of car get tired, Man who run behind car get exhausted."

        1 Reply Last reply
        0
        • L Lost User

          Hi, I have some weird problem and being new to VB I have no idea why it does not work. I created a splash form with a login button. With a successful login the code goes frmSplash.Hide frmMain.Show This works, now I am on frmMain.Show. On this form I have 3 command buttons. All I want to do after any command button hit is do frmMain.Hide then i.e. frmAdmin.Show. Well .Show is not available only ShowWhatsThis? I do not get the frmAdmin to display and I have no clue as to why. What did I miss? Thanks samantha :mad:

          M Offline
          M Offline
          Moses420ca
          wrote on last edited by
          #4

          Make 3 forms. 1 called frmSplash 1 called frmMain 1 called frmAdmin --- frmSplash code --- Option Explicit Private Sub Command1_Click() If Text1.Text = "username" And Text2.Text = "password" Then frmMain.Show Unload Me Exit Sub Else GoTo Wrong End If Wrong: If MsgBox("You have entered a wrong username or password.", vbRetryCancel, "My Project") = vbCancel Then Unload frmMain Unload frmAdmin Unload frmSplash Else Text1.Text = "" Text2.Text = "" End If End Sub Private Sub Form_Load() Text1.Text = "" Text2.Text = "" End Sub --- frmMain code --- Option Explicit Private Sub Command1_Click() Load frmAdmin frmAdmin.Show Unload Me End Sub Thankz, Drew

          1 Reply Last reply
          0
          • L Lost User

            Hi, I have some weird problem and being new to VB I have no idea why it does not work. I created a splash form with a login button. With a successful login the code goes frmSplash.Hide frmMain.Show This works, now I am on frmMain.Show. On this form I have 3 command buttons. All I want to do after any command button hit is do frmMain.Hide then i.e. frmAdmin.Show. Well .Show is not available only ShowWhatsThis? I do not get the frmAdmin to display and I have no clue as to why. What did I miss? Thanks samantha :mad:

            M Offline
            M Offline
            Moses420ca
            wrote on last edited by
            #5

            The reason ".ShowWhatsThis" and no ".Show" happened because you mustn't of called the "form" function. ie: Command1 function has no argument of .Show, closest match is .ShowWhatsThis Thankz, Drew

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups