show another form without loosing focus on current form prob...

UCM

Centurion
Joined
Jan 1, 2003
Messages
135
Location
Colorado, usa
Visual Basic:
  Private Declare Function ShowWindow Lib "user32" Alias "ShowWindow" (ByVal hwnd As IntPtr, ByVal nCmdShow As Integer) As Integer
  Private myWindow As New Form()
  Private Const SW_SHOWNOACTIVATE As Integer = 4

  private form_load(blah, blah )
    ShowWindow(myWindow.Handle, SW_SHOWNOACTIVATE)
  end sub

It is my understanding that this is supposed to display a form without the current form loosing focus, why doesn't it work?
 
Yes, I see........... hmm.....dat's odd, it should work fine in my code but it takes the focus away from the form that calls a user control that displays the alert form...


I'll check my code and post some results here ( hopefully soon if I get time )....
 
Back
Top