Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

 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?

UCM

>-)

Posted

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 )....

UCM

>-)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...