"dotNetDave" <dotNetDave@discussions.microsoft.com> wrote in message
news:105A1FF0-0634-4A9A-8727-39079A42629D@microsoft.com...
>I finally figured it out... the deffinition for SetWindowsPos I got from
>some
> web page was wrong. Once I change the param types to Integer, it started
> working :-)
>
> "Joep" wrote:
>
>> Ok, so if you know what window is on top before you popyour window up,
>> can't
>> you pull that first one to the front after you have pop-upped/popped-up
>> your
>> window?
>>
>> "dotNetDave" <dotNetDave@discussions.microsoft.com> wrote in message
>> news:F691D22A-C71B-414A-8855-E215D66750A3@microsoft.com...
>> > Sorry I was not clear, it is a normal window. It just pops-up (appears)
>> > above
>> > the system tray like the MSN Messenger or Outlook notification window
>> > does.
>> >
>> > "Joep" wrote:
>> >
>> >> if your window is a popup it behave properly, ever seen two popup
>> >> menus
>> >> at
>> >> the same? i'd try a normal window instead of a popup
>> >>
>> >> "dotNetDave" <dotNetDave@discussions.microsoft.com> wrote in message
>> >> news:1B94B7E2-DE5E-45B7-8000-99609C9BECA1@microsoft.com...
>> >> >I have a pop-up Windows Form that displays next on top of the system
>> >> >tray.
>> >> >I
>> >> > can get it to pop-up just fine using .TopMost and .Show, but the
>> >> > problem
>> >> > is
>> >> > that it seals focus away from the application that the user is
>> >> > currently
>> >> > using... I don't want that. I have gone to the API level and used
>> >> > calls
>> >> > like
>> >> > ShowWindow, SetWindowLong and SetWindowPos, but none seem to work
>> >> > right.
>> >> > Either the window does not come up or it just appears for a split
>> >> > second
>> >> > and
>> >> > then disappears.
>> >> >
>> >> > Any suggestions would be greatly appreciated!
>> >> >
>> >> > David McCarter
>> >> >
>> >> >
>> >> > =====================
>> >> > David McCarter
>> >> >
www.vsdntips.com >> >>
>> >>
>> >>
>>
>>
>>