bikin modul baru isi dengan ini (kutipan dari PSC)

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

Public Sub FormOnTop(hWindow As Long, bTopMost As Boolean)
    Const SWP_NOSIZE = &H1
    Const SWP_NOMOVE = &H2
    Const SWP_NOACTIVATE = &H10
    Const SWP_SHOWWINDOW = &H40
    Const HWND_TOPMOST = -1
    Const HWND_NOTOPMOST = -2
    wFlags = SWP_NOMOVE Or SWP_NOSIZE Or SWP_SHOWWINDOW Or SWP_NOACTIVATE
 .  Select Case bTopMost
    Case True
        Placement = HWND_TOPMOST
    Case False
        Placement = HWND_NOTOPMOST
    End Select
    SetWindowPos hWindow, Placement, 0, 0, 0, 0, wFlags
End Sub

cara pakenya  di form load

Private Sub Form_Load()
Call FormOnTop(form1.hwnd, True) ' kalo mau ontop terus
Call FormOnTop(form1.hwnd, False) ' kalo mau ontop dimatiin
End Sub

semoga membantu

indra gunawan wrote:
>
>
>
> > Ada yang tau ga..script untuk VB6 untuk Always On
> top kayak di Windows
> > Xp....coz gw pake show modal selalu bermasalah kalo
> pake alt + tab.....
> > Please bantuin dong...
> >
> >
>

__________________________________________________
Apakah Anda Yahoo!?
Lelah menerima spam?  Surat Yahoo! memiliki perlindungan terbaik terhadap spam  
http://id.mail.yahoo.com 


Wahana Programmer Groups Links

<*> Untuk mengunjungi sponsor milis ini, klik link berikut:
    http://wahanaprogrammer.net

<*> Untuk menghubungi owner milis ini, kirim email ke:
    [EMAIL PROTECTED]

<*> Konsultasi pemrogramman bisa chat disini:
    Yahoo! Messenger: wahanaprogrammer
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Programmer-VB/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Kirim email ke