I found a solution to my question: How to make UserControl the top control...
Hello All!
I found a solution for the question in the subject:
I use an API call:
Private Declare Function SetWindowPos Lib "user32" _
(ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
and I call this function in after the resize event:
retval = SetWindowPos(GridList.hwnd, 0, 1, 1, UserControl.Width, UserControl.Height, -1),
where the last (wFlags) parameter is the important one: -1 which means 'WND_TOP' places the window at the top of the Z order.
Bye!