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. how to open Main,Mid,Child Form?

how to open Main,Mid,Child Form?

Scheduled Pinned Locked Moved Visual Basic
helpquestiontutorial
2 Posts 2 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.
  • S Offline
    S Offline
    samerali
    wrote on last edited by
    #1

    hello i got little problem okay u now see the main form i click button it opens another form lets says its form2 in form2 there is also button than open form3 in form3 there is close button when i click on it it close both form2 and 3 i want only to close form3 and let form2 opened? how can i do this? im using Dim something As new form2 something.show somebody help me plz thanks

    S 1 Reply Last reply
    0
    • S samerali

      hello i got little problem okay u now see the main form i click button it opens another form lets says its form2 in form2 there is also button than open form3 in form3 there is close button when i click on it it close both form2 and 3 i want only to close form3 and let form2 opened? how can i do this? im using Dim something As new form2 something.show somebody help me plz thanks

      S Offline
      S Offline
      steff kamush
      wrote on last edited by
      #2

      hi samerali, i don get your problem. with form1, form2 n form3 as u describe, this code works for me the way u want. assume each form has a button1: '//in form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim NewChild As New Form2() 'Display the new form. NewChild.Show() End Sub '//form2 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim NewChild As New Form3() 'Display the new form. NewChild.Show() End Sub '//form3 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.Close() End Sub :rose::rose:

      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