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. VB 2005 Express Edition

VB 2005 Express Edition

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
7 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.
  • A Offline
    A Offline
    aswd
    wrote on last edited by
    #1

    how to unload and load a form?

    D 1 Reply Last reply
    0
    • A aswd

      how to unload and load a form?

      D Offline
      D Offline
      drexler_kk
      wrote on last edited by
      #2

      Hello, I'm not sure what you want is something like this:

      Dim Newform1 as new Form1
      Newform1.show() ' To Load a form

      Newform1.Close() 'To Unload

      'Or

      Newform1.Hide() 'To Unload

      I just hope it helps you. :)

      modified on Monday, February 23, 2009 1:17 AM

      A 1 Reply Last reply
      0
      • D drexler_kk

        Hello, I'm not sure what you want is something like this:

        Dim Newform1 as new Form1
        Newform1.show() ' To Load a form

        Newform1.Close() 'To Unload

        'Or

        Newform1.Hide() 'To Unload

        I just hope it helps you. :)

        modified on Monday, February 23, 2009 1:17 AM

        A Offline
        A Offline
        aswd
        wrote on last edited by
        #3

        yes..dats rite!!..but the form will restart,rite?..i dont want the form to restart.. plss...help me..txx

        L 1 Reply Last reply
        0
        • A aswd

          yes..dats rite!!..but the form will restart,rite?..i dont want the form to restart.. plss...help me..txx

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Form.Close() will close the form, it will not restart.

          Check out the CodeProject forum Guidelines[^]

          A 1 Reply Last reply
          0
          • L Lost User

            Form.Close() will close the form, it will not restart.

            Check out the CodeProject forum Guidelines[^]

            A Offline
            A Offline
            aswd
            wrote on last edited by
            #5

            ya2..but actually i want to reset the form by unload n load back the form..can u help me?

            L D 2 Replies Last reply
            0
            • A aswd

              ya2..but actually i want to reset the form by unload n load back the form..can u help me?

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Make your own reset method to reinitialize your objects and controls.

              Check out the CodeProject forum Guidelines[^]

              1 Reply Last reply
              0
              • A aswd

                ya2..but actually i want to reset the form by unload n load back the form..can u help me?

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                How many times are you going to ask the same question and ignore the answers you've been given?? There is no method to "reset" a form unless you write code to reset all of the values and controls you need, yourself. If this is a child form you're talking about, all you need to do is create a new instance of the form, show it, get the values you need from it, then call Dispose on that instance. Every new instance you create will be created with the same initial values you specify in it's design and startup code.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008

                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