Results 1 to 7 of 7

Thread: How to make it the active application?

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Quebec, Canada
    Posts
    3
    What I would simply make is like the RESTORE command...

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670
    Please be a little more specific - what's the RESTORE command ?
    'Buzby'
    Visual Basic Developer
    "I'm moving to Theory. Everything works there."

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    May be you can use the AppActivate.

  4. #4
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    your application or someone else's?

  5. #5
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    you could try this:


    Code:
    'Declarations
    Declare Function SetActiveWindow Lib "user32.dll" (ByVal hwnd As Long) As Long
    Declare Function SetForegroundWindow Lib "user32.dll" (ByVal hwnd As Long) As Long
    'Function
    Public Function ActivateWindow(hwnd As Integer)
    Dim retval As Long
    retval = SetForegroundWindow(hwnd)
    retval = SetActiveWindow(hwnd)
    End Function
    'To use
    Private Sub Hello_Click()
    ActivateWindow Me.Hwnd
    End Sub


  6. #6
    New Member
    Join Date
    Mar 2000
    Posts
    2

    setforegroundwindow on Win98

    Hi,

    I've tried using setforegroundwindow and setactivewindow APIs but they don't work on Win98.

    The problem is: Win98 only flashes your app on the taskbar and does not 'jump' at the user like Win95.

    Is there a solution?

    Thanks!

    -Samseng

  7. #7
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    i don't know sorry
    i use win 98

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