R
RB Smissaert
Using a VB6 form in Excel as in the book Professional Excel Development.
This is the VB6 code that loads the form:
Public Sub ShowVB6Form()
Dim frmHelloWorld As FHelloWorld
Set frmHelloWorld = New FHelloWorld
Load frmHelloWorld
SetWindowLongA frmHelloWorld.hwnd, GWL_HWNDPARENT, mlXLhWnd
frmHelloWorld.Show 0
Set frmHelloWorld = Nothing
End Sub
Despite doing show Minimize button is True in the VB6 form properties, the
minimize button doesn't show.
The form can be minimized though via the title bar right-click menu.
How do I make the minimize button show?
RBS
This is the VB6 code that loads the form:
Public Sub ShowVB6Form()
Dim frmHelloWorld As FHelloWorld
Set frmHelloWorld = New FHelloWorld
Load frmHelloWorld
SetWindowLongA frmHelloWorld.hwnd, GWL_HWNDPARENT, mlXLhWnd
frmHelloWorld.Show 0
Set frmHelloWorld = Nothing
End Sub
Despite doing show Minimize button is True in the VB6 form properties, the
minimize button doesn't show.
The form can be minimized though via the title bar right-click menu.
How do I make the minimize button show?
RBS