UCM Posted March 5, 2003 Posted March 5, 2003 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? Quote UCM >-)
*Gurus* divil Posted March 5, 2003 *Gurus* Posted March 5, 2003 Calling the API _does_ work. I even posted an example project that does this here. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
UCM Posted March 5, 2003 Author Posted March 5, 2003 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 ).... Quote UCM >-)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.