Results 1 to 13 of 13

Thread: [RESOLVED] [2005] Closing previous form

Hybrid View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Posts
    274

    Re: [2005] Closing previous form

    Oh ya, just change the sequence, me.hide() comes first before form2.showdialog() and it works.
    By the way, can i display the textbox's text in form1 at form2?

  2. #2
    Frenzied Member HanneSThEGreaT's Avatar
    Join Date
    Nov 2003
    Location
    Vereeniging, South Africa
    Posts
    1,492

    Re: [2005] Closing previous form

    Yes
    Just use dot notation..

    VB Code:
    1. Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
    2.  
    3. Form1.Hide()
    4. Form2.TextBox1.Text = Text1.Text 'this will insert text1's value (from form1) into form2
    5. Form2.ShowDialog()
    6.  
    7. End Sub
    VB.NET MVP 2008 - Present

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