Results 1 to 1 of 1

Thread: I found a solution to my question: How to make UserControl the top control...

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    8

    Talking 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!
    Last edited by nincs; Aug 29th, 2001 at 01:55 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width