VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Embedded Forms (Tabbed, 2 forms 1 window)

James Chesterson  (1 Submission)   Custom Controls/Forms/Menus   Beginner   Wed 3rd February 2021

This code allows you to embed a sub form unto a "main" form. Supports loading/unloading. Uses tabs to load and unload 3 simple sub forms.
This allows you to have cleaner code by splitting UIs into different forms instead of having invisible frames on the same form

Inputs
Takes mouse input for tabs, could be converted for buttons, images etc or keystrokes.

Side Effects
1: Sometimes there is a slight flicker when changing forms. 2: If you do not unload an embedded form when closing the program it will stay in memory.

API Declarations
Private Declare Function SetParent Lib "user32" _
(ByVal hWndChild As Long, _
ByVal hWndNewParent As Long) As Long

Rate Embedded Forms (Tabbed, 2 forms 1 window) (3(3 Vote))

Download Embedded Forms (Tabbed, 2 forms 1 window)

Embedded Forms (Tabbed, 2 forms 1 window) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters