I've written a small app in a way such that focus constantly moves to the treeview when you do something. I did this so that I could use the app without the stylus. I added "treeView1.Focus();" throughout the app to accomplish this. I've found 2 cases where focus doesn't end up in the tree, I'm looking for suggestions on this..
1. If I run my app first, then run another app, when I switch back to my app focus is nowhere. How can I determine when my app is active and move focus back to the treeview?
2. There are 2 radio buttons on the form. Currently I capture when either button changes and immediately treeView1.Focus(); which works great. But if I purposely click the same radio button twice, focus is lost and no longer appears in the tree.
I'm using Visual C# .NET 2003, any suggestions are welcome.