Results 1 to 9 of 9

Thread: Opening a form more then once?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    Question

    You know how in word you can have multipal documents open? Say I have a MDI project, and I have a new command, and it is suposed to open a form named frmnew, how can I tell it to open that form like 10 times, if I were to click the NEW button 10 times?

  2. #2
    Guest
    Code:
    Dim newfrm As New frmnew
    newfrm.Show

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    First time I open it

    The first time I open it it opens the form twice, but every time after that it only opens it once.

  4. #4
    Guest
    It should only open once everytime. You sure you don't have this by mistake?

    Code:
    Dim newfrm As New frmnew
    Dim newfrm As New frmnew
    newfrm.Show

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313
    Private Sub New_Click(Index As Integer)
    Dim newfrm As New FRMNew
    newfrm.Show
    End Sub

  6. #6
    Guest
    Also, TURN OFF the AutoShowChild property of the MDI form.

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Texas
    Posts
    313

    resize?

    It was happeing because I had a resize for the rich text box, to keep it the same size as the form. It was makeing a new one. Any ideas on how to do a resize and not make it open a second one?

  8. #8
    Guest
    As long as you Dim it, you have access to it, so you don't have to make it visible or anything.

    Just a...

    Code:
    Dim newfrm As New frmnew
    And type a newfrm. and you will get a list. You should know what to do from there.

    Is that what you are meaning to do?

  9. #9
    Guest
    What was your code for resizing the RTB? Please also tell me where you placed it, like:

    Code:
    FormChild_Resize()
    ...
    ...

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