Results 1 to 3 of 3

Thread: Minimize a given window.....!

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    Sri Lanka
    Posts
    66

    Question

    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

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    ramindu, here the sameple code for miximize any givcen window

    Code:
    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 (Save as...)

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2001
    Location
    Sri Lanka
    Posts
    66

    Thank You

    Thak You

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

    Rgds
    Ramindu

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width