I want to activate only a child window from a parent without the parent being "shown". Is it programmatically possible.
Printable View
I want to activate only a child window from a parent without the parent being "shown". Is it programmatically possible.
Make the parent Form transparent, and you can make all your child windows visible.
I guess the obvious question is how to make the parent window transparent. I am guessing there is an api call for this, maybe ShowWindow? If you know tha api to do this please let me know.
Add the following to a form with a Timer.
Code:Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Const GWL_EXSTYLE = (-20)
Const WS_EX_TRANSPARENT = &H20&
Private Sub Timer1_Timer()
SetWindowLong hwnd, GWL_EXSTYLE, WS_EX_TRANSPARENT
End Sub
Thanks Megatron, I will play around with what you have given me.
So many useful API calls, so little knowledge of them.