-
Jul 12th, 2014, 06:47 AM
#1
Thread Starter
Lively Member
[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,
-
Jul 12th, 2014, 07:01 AM
#2
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
-
Jul 12th, 2014, 07:47 AM
#3
Re: Help need vb6
It shoulds like you want to show a modal form.
Form2.Show vbModal
-
Jul 12th, 2014, 08:04 AM
#4
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
-
Jul 12th, 2014, 08:26 AM
#5
Frenzied Member
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 .
Last edited by firoz.raj; Jul 12th, 2014 at 09:02 AM.
-
Jul 12th, 2014, 09:56 AM
#6
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
-
Jul 12th, 2014, 01:19 PM
#7
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|