Is it possible to place other forms onto a single form using SSTab? I have several forms that I want to combine like this. Ideas?
Printable View
Is it possible to place other forms onto a single form using SSTab? I have several forms that I want to combine like this. Ideas?
Put a frame on each tab of the SSTab control, and assign each form to a specific frame.fraTab1 is a frame on Tab1, fraTab2 is a frame on Tab2 and fraTab3 is a frame on Tab3Code:Option Explicit
Private Declare Function SetParent Lib "user32" _
(ByVal hWndChild As Long, _
ByVal hWndNewParent As Long) As Long
Private Declare Function GetClientRect Lib "user32" _
(ByVal hWnd As Long, _
lpRect As RECT) As Long
Private Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Sub Command1_Click()
Form2.Show
SetParent Form2.hWnd, fraTab1.hWnd
Form3.Show
SetParent Form3.hWnd, fraTab2.hWnd
Form4.Show
SetParent Form4.hWnd, fraTab3.hWnd
End Sub
Very nice....works well. Now how can I set the "tabbed" form to fit the frame?
ok....I have the tabs setup with a frame for each tab, and a form assigned to each frame (just like your code). The problem is that the forms do not fill the entire area of the frame. How do I force the assigned form to "fill" the entire frame? Know what I mean?