Results 1 to 7 of 7

Thread: [RESOLVED] Help need vb6

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2014
    Posts
    66

    Resolved [RESOLVED] Help need vb6

    Hello All,
    I have 40 forms, one form mainform , all another forms are subforms.
    when i open subform by the mainform, it open. But i click mainform, subform goes into back and mainform is in front.

    How to avoid this.. How can i blink the subform when i click mainform (like message boxes)???

    i can't tell more details to this. because of my english..
    i believe you can understand my problem...

    Thank you,

  2. #2
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Help need vb6

    Does each form you open move behind previous sub forms that were opened?
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  3. #3
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141

    Re: Help need vb6

    It shoulds like you want to show a modal form.

    Form2.Show vbModal

  4. #4
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,205

    Re: Help need vb6

    Yes, modal may be what you are looking for. That makes a form behave kind of like a msgbox it that it disables the other forms until the new form is closed or hidden.

    Another thing you may want to look into is MDI parent and children forms

  5. #5
    Frenzied Member
    Join Date
    Jan 2009
    Location
    Watch Window(Shift+f9)
    Posts
    1,879

    Question Re: Help need vb6

    problem is that when modal form is open . you even cannot close your modeless form . it even cannot go back of the modeless form . so form as a modeless . and you can resize it will go behind the form .
    Code:
    Private Sub Form_Click()
    Form2.Show vbModeless
    End Sub
    How to avoid this.. How can i blink the subform when i click mainform (like message boxes)?
    show the form as vbmodal . form2 will be fix like msgbox .modeless form
    even cannot go outside the form 2 .
    Code:
    form2.show vbmodel
    Last edited by firoz.raj; Jul 12th, 2014 at 09:02 AM.

  6. #6
    Frenzied Member
    Join Date
    Jun 2014
    Posts
    1,084

    Re: Help need vb6

    another possibilitie would be
    Code:
    Private Sub Command1_Click()
       Form2.Show vbModeless, Me
    End Sub
    where Form2 is a subform
    that way both the mainform and the subforms will be usable and the subforms will not go behind the mainform
    the subforms will be owned by the mainform

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Apr 2014
    Posts
    66

    Re: Help need vb6

    thank you very much for all.... The problem for me for two days......it's solved

    Thanks Again...

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