Re: [VB6] - geting HWND with InvisibleAtRuntime true
Get the hWnd from where?
If your control is not visible and your code, in your form that the control is on, needs the hWnd then simply provide a property that returns the ocx's hWnd
Code:
Public Property Get hWnd() As Long
hWnd = UserControl.hWnd
End Property
Just because it is invisible doesn't mean it has no hWnd. The only time it will not have an hWnd is if the Windowless property is True
Insomnia is just a byproduct of, "It can't be done"
Re: [VB6] - geting HWND with InvisibleAtRuntime true
Originally Posted by LaVolpe
Get the hWnd from where?
If your control is not visible and your code, in your form that the control is on, needs the hWnd then simply provide a property that returns the ocx's hWnd
Code:
Public Property Get hWnd() As Long
hWnd = UserControl.hWnd
End Property
Just because it is invisible doesn't mean it has no hWnd. The only time it will not have an hWnd is if the Windowless property is True