Toastform, focus problems

  • Thread starter Thread starter Albert
  • Start date Start date
A

Albert

Hi all,

at some point my application fires a, msn messenger like, toastform in the
bottom of the screen. This all works like a charm, except for the fact that
this toast form get focus and thus interrupts whatever im doing at that
time.
Now my question is if someone can tell me how to prevent the toast form from
getting focus. I have been doing some research and have been pointed in the
direction of overriding the wndprc, but im not sure if this will get me what
i want, so i figured to ask you guys first.
All help is very much appreciated.

Albert,

Holland
 
Albert,

I'm not exactly sure what "toast form" is, but you can try to override and
return *false* from the ShowWithoutActivation form's protected property.
 
Thanks,

actually the property is to be set to *true* since the default is false.
Also the property "Topmost" is to be set to false, and works like a charm.
Thanks!!

Albert
 
Hi Albert,

I'm also curious - what is a "toast form"? Some behavioral and/or
layout pattern for a form?

I have msn messenger installed - maybe you could direct me to the msn
messenger toast form?

Thanks in advance...

With kind regards,
Christer

Albert skrev:
 
First I want to apologize for the mistake that I made with the value for the
property. Of course it has to be *true* as the name of the property and
desired effect suggest.

I googled a bit for "toast" forms amd it looks like the name comes somehow
from VB (maybe I'm wrong here) but the effect is of a form sliding up from
the taskbar and then sliding back down. I guess the name comes from the
similarity of how slice of bread goes in and out of a toaster. The MSN
messenger has this windows when some of the people from the list of
contancts becomes online.
 
Ah, thank you for that.

I wouldn't mind seeing some example code on such a toast form if you
have some?

Kind regards,
Christer


Stoitcho Goutsev (100) skrev:
 
Christer,

if you google for toastform or toastwindow, it wont be long before you find
some example code.

Stoitcho, thanks again for your effort.

Albert
 
Back
Top