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. Button usage

Button usage

Scheduled Pinned Locked Moved Visual Basic
question
4 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.
  • M Offline
    M Offline
    machman1
    wrote on last edited by
    #1

    I want to use a button to change to another form, how do you call the other form? :-D

    C D A 3 Replies Last reply
    0
    • M machman1

      I want to use a button to change to another form, how do you call the other form? :-D

      C Offline
      C Offline
      CWIZO
      wrote on last edited by
      #2

      You make a new instance of the second form (ore use an existing one) and call it's Show or ShowDialog method. -------------------------------------------------------- My development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

      1 Reply Last reply
      0
      • M machman1

        I want to use a button to change to another form, how do you call the other form? :-D

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3
        Dim myForm As New MySecondForm
        myForm.Show()
        ' or
        Dim result as DialogResult
        result = MyForm.ShowDialog()
        

        Dave Kreskowiak Microsoft MVP - Visual Basic

        1 Reply Last reply
        0
        • M machman1

          I want to use a button to change to another form, how do you call the other form? :-D

          A Offline
          A Offline
          arunendra
          wrote on last edited by
          #4

          use the following command on the click event of the button formname.show formname is the name of the form you want to open

          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