I am not familiar with Windows API. I copy a code about resizing a userform using W.API but then I also want to bind the multipage's width to the userform while resizing it. Can I also use W.API to multipage or any other object? or its only for active window? .
Here is the code.
Private Sub MakeFormResizable()
Dim lStyle As Long
Dim hWnd As Long
Dim RetVal
Const WS_THICKFRAME = &H40000
Const GWL_STYLE As Long = (-16)
hWnd = GetActiveWindow
lStyle = GetWindowLong(hWnd, GWL_STYLE) Or WS_THICKFRAME
RetVal = SetWindowLong(hWnd, GWL_STYLE, lStyle)
SetLastError 0
End Sub
Thanks!.