Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to know a replacement for GetActiveWindow

Status
Not open for further replies.

FireFett

Programmer
Mar 31, 2000
42
US
Ok I have a vb 6 app and moving it to .net but I am having a problem with finding a replacement for the following
Public Declare Function GetActiveWindow Lib "user32" () As Long

If GetActiveWindow = MdiForm1.Hwnd then

Execute other code

End if

I am trying to do the following in .net but it doesn't like it
IF System.Windows.Forms.Form.ActiveForm = MyMdiForm1.Handle then

Execute Other Code

End if

Any suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top