Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide App in Win98 and Windows 2000

Status
Not open for further replies.

windoz255

Technical User
Apr 8, 2003
17
GB
Hi,

Does anyone know how I can hide my VB program in Win 98 and Windows 2000.

I do not want to create 2 seperate programs, one for each OS. I have seen some code for hiding win 98 apps but this does not seem to work in Windows 2000.

The following code will not work correctly in Win98, as it still displays the running app in the task manager.

App.TaskVisible = False

The following code seems to work on win98 only but crashes in Windows 2000.

Public Declare Function RegisterServiceProcess Lib "kernel32" (ByVal ProcessID As Long, ByVal ServiceFlags As Long) As Long
Public Declare Function GetCurrentProcessId Lib "kernel32" () As Long

RegisterServiceProcess GetCurrentProcessId, 1 'Hide app

Any ideas in how I can hide the app on both Operating systems ?


Thanks.
Al.
 
The forms which run are invisible. The task manager is capturing the name of the app, that is the thing which I don't want.

Any ideas ??
 
Try This it should work.


Private Sub Form_Load()

App.TaskVisible = True
End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top