Window Handles in .NET

In VB 6.0 I was used to getting a window handle by using API and doing what ever I needed to do with that window.

In VB.NET and it's HUGE API list, what is the equivalent to doing this, or should we just continue to use WIN 32 API For instance I want from within VB app to get other applications windows handle and move it resize it etc. What is the normal way to do this in VB.NET



Answer this question

Window Handles in .NET

  • Geof2323

    Hey Phil.

    I was playing with the yesterday.

    If it's the process main window hand you want, to can get it from process information. It's a property.



  • ghawkes

    Not exactly. It's a win32 app running on the PC. I was expecting some class or another giving me access to this handle via .NET.

    Thanks,


  • Window Handles in .NET