HN-Community
[ask]code buat always on top dan enggak visible di taskbar - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html)
+---- Forum: Visual Basic (VB) (https://hacker-newbie.org/forum-68.html)
+---- Thread: [ask]code buat always on top dan enggak visible di taskbar (/thread-13952.html)



[ask]code buat always on top dan enggak visible di taskbar - JuanTheGlassesMan - 05-27-2012

maaf min klo thread ane nyampah delete aja klo meresahkan.saya cuma pengen nanya byar windows kita selalu always on top codenya apa yaBingung? terus byar apps kita ga ada jejaknya di taskbar itu codenya apa? soalnya saya udah showintaskbar false masih bisa keliatanBingung, itu kenapa ya? sekali lagi thank youBahagia


RE: [ask]code buat always on top dan enggak visible di taskbar - mydisha - 05-27-2012

Biar di taskbar ga keliatan caranya

ente klik form nya -> Lihat bagian properties form nya, -> Show in taskbar nya ganti jadi false gan

nih buat yang always on top


Fungsi API :

Code:
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


Tambahin ini di form


Code:
Private Sub FormOnTop(frmForm As Form, Optional blnTop As Boolean = True) If blnTop Then SetWindowPos frmForm.Hwnd, -1, 0, 0, 0, 0, 3 Else SetWindowPos frmForm.Hwnd, -2, 0, 0, 0, 0, 3 End If End Sub


cara pake nya

Contoh


Code:
FormOnTop Form1, True

moga membantu Bigsmile


RE: [ask]code buat always on top dan enggak visible di taskbar - JuanTheGlassesMan - 05-27-2012

wah thanks ya kak mydisha udah berhasil nih heh HN emang the best


RE: [ask]code buat always on top dan enggak visible di taskbar - mydisha - 05-27-2012

yoa sama sama bro Bigsmile

keep coding :)