Change focus to another window in VB.NET

I am using VB.NET and need to activate a certain window. Is this possible? If so, how?

Answers


You will need to use the Win32 API to do this.

First, find window you want to bring to front by calling FindWindow to obtain its handle, and then use SetForegroundWindow API to bring it to the foreground.

PInvoke contains declarations for these methods.


Need Your Help

Missing Refactoring Options in MonoDevelop

monotouch monodevelop

I'm on version 3.0.3.5 of MonoDevelop and was looking at the Pluralsight tutorials for MonoTouch where John Sonmez uses a few refactoring Tools/methods in the ViewController that isn't available in...

apache commons dbutils malformed sql

apache-commons apache-commons-dbutils

I am using QueryRunner to fetch some records from the DB

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.