Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Threading Question
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00692021
Message ID:
00692112
Views:
34
>Hello everyone, I have a multi-threaded VB.NET application. When the application starts a main form is loaded. Inside the load event, there is code that starts another thread. On this thread, a form is instantiated, and moved off the screen so that the user cannot see it. This form will run in the background and appear periodically when the user input is needed. Although the form is not visible to the user, it still has focus, because it was started last in the thread process. My question is, how can I return focus back to the main form that instantiated the new thread? Any ideas? I assume it would be like jumping from one application to another by clicking on the item in the start bar, but I don't know how to do it programmatically. Thanks for the help.

You might try to hack at it with SendKeys (equivalent of the VFP Keyboard command).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform