Results 1 to 2 of 2

Thread: window

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Posts
    21
    how do i make a form that when u click on a button, say "ok", goes to another form in the same window?

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Lightbulb

    Sounds like you need an MDI form. You can add an MDI form by selecting Add MDI Form from a Project menu. The you would add another form (regular form) and set it's MDIChild property to TRUE. Also, the Form that you have by default, change it's MDIChild property to TRUE as well. Add a Button to the Form1.
    Select Project properties from the Project menu and change Startup Object to MDI form.
    Then use this code:

    MDI code
    Code:
    Private Sub MDIForm_Load()
        Form1.Show
    End Sub
    Form1 code
    Code:
    Private Sub Command1_Click()
        Form2.Show
    End Sub

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