Results 1 to 5 of 5
  1. #1

    Default [VB] force window on top


    i ned a tested sample code/program that force to display on top of all active windows. i already have sample codes from vbcode.com, pscode.com, a1vbcode.com but all failed to overlap a GAME active window.

  2. #2

    Default Re: [VB] force window on top

    pangita nalang ug sample gyud sa kanang vb na game... para dili ka malibog... kay basin maka chamba ka na naay always-on-top na ilang gi gamit sa ilang game code...

  3. #3

    Default Re: [VB] force window on top

    Code:
    Private Sub Timer1_Timer()
    Me.WindowState = 2     'maximize
    Me.SetFocus
    End Sub
    try lang kuno... i-set ang timer interval = 1

  4. #4

    Default Re: [VB] force window on top

    thnx bro. hav it work now w/ lots of API... thing is u have to send key stroke to switch focus like alt+tab sendkeys "+%Tab", true.. it work fine..

  5. #5

    Default Re: [VB] force window on top

    use

    SetWindowPos API

    Private Declare Function SetWindowPos Lib "user32" _
    (ByVal hwnd As Long, ByVal _
    hWndInsertAfter As Long, ByVal X As Long, ByVal Y As _
    Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags _
    As Long) As Long


    Private Const SWP_NOSIZE = &H1
    Private Const SWP_NOMOVE = &H2
    Private Const HWND_TOPMOST = -1


    ' code to show window always on top
    SetWindowPos Me.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE Or SWP_NOMOVE

    hope this helps

  6.    Advertisement

Similar Threads

 
  1. Special Force lagging on my internet cafe
    By kidrock_6971 in forum Software & Games (Old)
    Replies: 7
    Last Post: 01-13-2009, 03:29 PM
  2. 3 Pinays on top of the World
    By samamar21 in forum Politics & Current Events
    Replies: 27
    Last Post: 05-28-2007, 10:54 PM
  3. Kid on top of Napocor tower, shot and killed.
    By omad in forum Politics & Current Events
    Replies: 32
    Last Post: 09-27-2006, 06:32 PM
  4. being on top of the music
    By tjyrna in forum Music & Radio
    Replies: 0
    Last Post: 09-02-2006, 06:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top