Hi every body
in visual basic 2005 ,the form.TopMost Property didn't work correctly in visula basic 2005.
I set TopMost property to ture,but my form lost focus when user clicks on another form.
I Need this information to complete my job.
Hi every body
in visual basic 2005 ,the form.TopMost Property didn't work correctly in visula basic 2005.
I set TopMost property to ture,but my form lost focus when user clicks on another form.
I Need this information to complete my job.
Elham_Dahwa wrote:
I set TopMost property to ture,but my form lost focus when user clicks on another form.
That's not what 'topmost' does: it simply sets it as the topmost form (competing with other topmost forms): it won't prevent the application from loosing focus.
Maybe there are some things you all could help me with. I have a tiny continuously running process/display. Many other processes cover it up. For example mt VS2005 IDE often covers it up but not always. Word often covers it up but not always. I love and need the little display but It's not always visible for me.
Isn't there the ability to use some HWND calls for this one
Like check wich form has focus, and if it's not your one..
I'm aware of the negative aspects of this one
because if you do it this way,
you probably always get control to that form,
so if you're typing something in word, and
your form pops up..
Just trying to create some ideas
Grtz, Tom.
Tom.
This is absolutely nothing but a display. A very small performance monitor. It's described up in the show and tell forum.
I have a few items which are always on top (ObjectDock, for example), which sometimes disappear to the background. Usually I have to 'reset' it to be back on top. It doesn't use the .NET framework, so I guess the issue is that always on top is unreliable.
I believe that there are probably some applications which use the always on top mechanism to bring a form to the foreground, which messes up forms which truly need to be always on top. I guess you can simply set it back to top every couple of seconds or so...a bit crude using a timer like that, but it may be the only way, unless there's a windows message which gets sent.