Your application needs to be deriving the notification window from
NativeWindow. This will be a top level window using a popup style and will
animate itself using the LayeredWindow API. You can use the ShowWindow API
with the SHW_SHOWNOACTIVATE style so that it doesn't grab the focus. This is
how tooltips operate.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"sandy_pt_in" <sa*********@yahoo.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Hi,
I have modal form which I am showing with some fading effect...
(it is like balloon that comes when you receive a mail in the outlook.)
But when I show this form, Owner form looses focus.
I searched across net & I came across ShowWindow API, It seems working
for me ... but the fading effect is not working.Can you please suggest
me some way so that I will be able to show my modal form using
ShowDialog and Still it is deactivated when it is loaded... please
help...