|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hide it!
Hum I want to creat a program that would "hide" (duno the proper term in english. Me = francophone.canada)
Just like msn. How do I do that? |
|
#2
|
||||
|
||||
|
what do you mean "hide"... as in, one that will run on the taskbar (next to your clock), but without showing on the screen?
__________________
Fisherman "Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - A.Einstein |
|
#3
|
|||
|
|||
|
yup that's it ^_^
forgive my bad english |
|
#4
|
|||
|
|||
|
U can use 2 api function to realize it!This is source code from www.allapi.net:
Const RSP_SIMPLE_SERVICE = 1 Const RSP_UNREGISTER_SERVICE = 0 Private Declare Function GetCurrentProcessId Lib "kernel32" () As Long Private Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long Public Sub MakeMeService() Dim pid As Long, reserv As Long 'Get the current process ID pid = GetCurrentProcessId() 'Register as service regserv = RegisterServiceProcess(pid, RSP_SIMPLE_SERVICE) End Sub Public Sub UnMakeMeService() Dim pid As Long, reserv As Long 'Get the current process ID pid = GetCurrentProcessId() 'Unregister as service regserv = RegisterServiceProcess(pid, RSP_UNREGISTER_SERVICE) End Sub Private Sub Form_Load() 'KPD-Team 1999 'URL: http://www.allapi.net/ 'E-Mail: KPDTeam@Allapi.net MakeMeService 'Right now, you're program is hidden from the CTRL-ALT-DEL-list End Sub Private Sub Form_Unload(Cancel As Integer) UnMakeMeService End Sub |
|
#5
|
||||
|
||||
|
CP- I think that he's looking for a way to minimize the application to the taskbar with a small icon showing next to the clock - I believe that code from allapi is to allow the program to run as a service so it will be invisible from the Task Manager
|
|
#6
|
|||
|
|||
|
Oh,Fisherman!U are right!I have a incorrect thought about this problem!His problem can be resolved by running it to systray!
Look for "systray" in this page:http://www.acky.net/vb/vbgraph/index2.sht to get the sample! |
|
#7
|
||||
|
||||
|
good man! good answer!
|
|
#8
|
|||
|
|||
|
who said I was "he"?
I'm "she" ![]() |
|
#9
|
||||
|
||||
|
sorry milisan, I meant CP
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Hide it! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|