PDA

Click to See Complete Forum and Search --> : Minimize a given window.....!


ramindu
Mar 12th, 2001, 09:06 AM
Please Help..... (Anybody.......!)

I wrote a prog using the coding given in the front page of Vb-world to 'Disble Task keys'

but the prob is : If the user minimizes a window I can't maximize it without quiting my program...!

I can get the hWnd value of the window but don't know to proceed farther (maximize it....)

Even maximizing all apps is ok - so i can bring wthe window i want to front using 'AppActivate'

Pls help ...........!

Thanks

Chris
Mar 12th, 2001, 09:23 AM
ramindu, here the sameple code for miximize any givcen window


Option Explicit
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Const SW_MAXIMIZE = 3

Private Sub Command1_Click()
ShowWindow Form1.hwnd, SW_MAXIMIZE
End Sub

'Code improved by vBulletin Tool (http://orion.spaceports.com/~mccloud/vbtool.zip) (Save as...)

ramindu
Mar 12th, 2001, 09:40 AM
Thak You

Thak You Very Very Much.........

Rgds
Ramindu