Results 1 to 6 of 6

Thread: Loading form ¿? (RESOLVED)

Threaded View

  1. #1

    Thread Starter
    Addicted Member Sanko's Avatar
    Join Date
    Mar 2000
    Location
    Argentina
    Posts
    128

    Question Loading form ¿? (RESOLVED)

    Hi i have 2 forms "form1" and "MdiPrincipal"

    In form1 i have a button when the user do a click the form1 must close and show the mdi

    Code:
    VB Code:
    1. Private Sub CmdAceptar_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdAceptar.Click
    2. Dim Mdi As New MdiPrincipal  
    3. Mdi.Show()
    4. 'Mdi.Dispose()
    5. Me.close()

    but when i click the button it opens the mdi and then automatically closes

    if i use
    VB Code:
    1. Mdi.ShowDialog(Me)
    it opens the Mdi but the form1 is already open

    if i use
    VB Code:
    1. Me.hide()
    the form1 is invisible but is in memory...

    I want to close the form1 and open the Mdi
    Last edited by Sanko; May 23rd, 2005 at 06:17 PM.

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