Z
zhou
in Visual Basic ,I use
Appactivate(AcadApp.caption);
Appactivate(AcadApp.caption);
Shakir Hussain said: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);
Shakir Hussain said: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);
Shakir Hussain said: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);
Manish Agarwal said:This is approach will not work when at user desktop there is an explorer
window open with same title as your application title.
--------------------------------------------
Manish Agarwal <[email protected]>
http://personal.vsnl.com/mkag
Shakir Hussain said: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);