VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB Expert!

Join 307,109 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,016 people online right now. Registration is fast and FREE... Join Now!




How to show form always in front of the other form

 

How to show form always in front of the other form

azwandotmy

26 Oct, 2009 - 08:43 PM
Post #1

New D.I.C Head
*

Joined: 11 May, 2009
Posts: 6

i have 1 mdiform and 3 form...

all of the form i have set the mdichild=true...

one of the form, i design it as a main form that contain the main link to the
other form....

when the second form appear, it will show in front of the main form..

but when i click the main form, the second form disappear and i need to reopen it to show that form...

so how can i do to send the main form to the back as mdiform?


plz help me!!!

tq

User is offlineProfile CardPM
+Quote Post


vb5prgrmr

RE: How To Show Form Always In Front Of The Other Form

27 Oct, 2009 - 05:39 AM
Post #2

D.I.C Regular
***

Joined: 21 Mar, 2009
Posts: 486



Thanked: 30 times
My Contributions
I would suggest that you use the show/hide methods in the situation you are describing...
CODE

Private Sub Command1_Click()
Load Form2
Form2.Show
Form2.ZOrder 0
Me.Hide
End Sub

then in the second form when you are done...
CODE

Form1.Show
Form1.ZOrder 0
Me.Hide
Unload Me




Good Luck


User is offlineProfile CardPM
+Quote Post

azwandotmy

RE: How To Show Form Always In Front Of The Other Form

2 Nov, 2009 - 09:22 PM
Post #3

New D.I.C Head
*

Joined: 11 May, 2009
Posts: 6

tq

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 12:57PM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month