Floating Window

Floating Window

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.

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.

See also  Comparing different methods of testing your Infrastructure-as-Code

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist