[RESOLVED] Main form focus
I have an application that just stores shortcuts to most used applications on users desktops. My problem is that when the machine loads after they login the app window looses focus and sometimes doesn't show in the taskbar. I tried to use Me.Focus() but that just gives the treeview focus and not the form itself. I mean the parent has focus in the treeview but the form is not highlighted, I can then click on the form and it gets selected.
What is a good way to get the whole form focus? I used me.focus in the form load too.
any ideas?
Re: [RESOLVED] Main form focus
dday was right about using the form_shown event too...
Re: [RESOLVED] Main form focus
so you think I should put it there and not have a timeset on it? Will it work the same no matter what the timing is on the desktop?
Re: [RESOLVED] Main form focus
the form_shown event doesn't fire until the form is fully loaded + visible
Re: [RESOLVED] Main form focus
Thanks again guys. It is better than what it use to be. At least it has more of a chance to load than the other way. I used the form_shown event. It still depends on the machine but it's still an big improvement.