Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Apr 8, 1999

Floating Window

Question:
I have an app that has an MDI form (MDIForm1), one MDIChild form (Form1), and one standard form (Form2). I would like to make Form2 a floating one so it gets minimized and restored together with the MDI form but is always on top of the app.

Answer:
In VB6, the Form's Show method takes a new parameter, OwnerForm. This parameter allows you to specify a Form that will be the owner of the displayed form—that is, the displayed form will always be on top of the ownerform and will be minimized/maximized with it. Do not set the form you want to display as a child of the MDI form.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date