VB.NET - Non Focusable Form - Asked By Morne on 04-May-12 10:48 AM

Earn up to 10 extra points for answering this tough question.
Hi,

I want to create a from that is always topmost, but the user shouldn't be able to click anything on the form.

I want to create a clock app that shows a clock in the botom right corner, but the mouse should go underneath the form not go over it and select anything.

So if you have say Word open then the mouse should be available to word not to my app.

Do you understand what  am trying to do?

and how can I do this?


Thanks
[)ia6l0 iii replied to Morne on 05-May-12 11:44 PM
Suggestions inline.

I want to create a from that is always topmost, but the user shouldn't be able to click anything on the form.
Set the form's topmost property to true. 
formInstance.TopMost = True
formInstance.Show()


I want to create a clock app that shows a clock in the botom right corner, but the mouse should go underneath the form not go over it and select anything.
To create a clock, use a timer control. Set the timer interval to as low as 1 millisecond (1000). And in its Tick event , update the label or any other control where you have set the time to. And to get the new values, use DateTime.Now property.

So if you have say Word open then the mouse should be available to word not to my app.
Yes, you need a click-through form. Please read the reply from "Cody Gray" on the following thread. 
http://stackoverflow.com/questions/4964205/non-transparent-click-through-form-in-net

Do you understand what  am trying to do?
Yes

Hope this helps.
Morne replied to [)ia6l0 iii on 06-May-12 03:06 AM
Thank you that worked!!
[)ia6l0 iii replied to Morne on 06-May-12 07:00 AM
Glad to help!