This can be achieved by windows api's
Add the definitions inside your class
[DllImportAttribute( "User32.dll" )]
private static extern int FindWindow( String ClassName, String
WindowName );
[DllImportAttribute( "User32.dll" )]
private static extern int SetForegroundWindow( int hWnd );
//to activate an application
int hWnd = FindWindow( null, "This is my Application Title" );
if( hWnd > 0 )
{
SetForegroundWindow( hWnd );
}
Shak.
zhou said:
in Visual Basic ,I use
Appactivate(AcadApp.caption);