Community discussion forum

how do i hide a project from task manager? and how

  • 3 years ago

    i was wondering how to hide programs from task manager, so that if you press ctrl+alt+delete, it will not be listed there, and also, how do i get VB to make a folder (i just learned the output command)

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 3 years ago

    I believe in order to hide a program from the task manager you need to use an API Call

  • 3 years ago

    ummm.... can you explain how to do that?  i am in grade 11 (high school), so all i know how to do is what i have learned

  • 3 years ago

    Well I don't know API Calls to well either myself. I can't even get a stupid line to format correctly


  • 3 years ago

    u dont need an api. use the App.TaskVisible property


    to make a new folder:
    MkDir "C:\NewFolder"



    Shmosel

  • 3 years ago

    schmosel, thank you, now i just have one question:


    where do i put app.taskvisible?  in a module? do i make the line of code "app.taskvisible = false"? so close.... yet so far....

  • 3 years ago

    i would put it in Form_Load() or maybe intialize
    App.TaskVisible = False



    Shmosel

  • 3 years ago

    awwww..... crap.... now instead of project1 appearing in taskmanager, form1 appears there...... any way to fix this and make nothing appear there? (i greatly appreciate your help, no one else wanted to help me today)

  • 3 years ago

    sorry, i couldnt really test it out; ctrl alt delete isnt working for some reason on my computer, but do u have 2 forms or are u starting your app w/ Sub Main?

  • 3 years ago

    here is my code
    Private Sub Form_Load()
    App.TaskVisible = False
    End Sub

  • 3 years ago

    is that your startup form?



    Shmosel

  • 3 years ago

    yes, it is

  • 3 years ago

    are there any other forms, or any other projects running?
    just guessing, as i said, i cant test but it's always worked fo me



    Shmosel

  • 3 years ago

    just project1 and form1 (part of project)


    how do i put something in sub main? that might work if i know how

  • 3 years ago

    make a separate module w/ a procedure:
    Sub Main()
    '...
    End Sub



    Shmosel

  • 3 years ago

    i think another thing u can do is:
    App.Title = ""



    Shmosel

  • 3 years ago

    Go to one of the VB Code sites ( i use www.planetsourcecode.com ) and search on task manager or somthing similar.  You should be able to find several examples of how to do this.


    BTW: Do you want to hide it from the task bar or the task manager? You need to know this so you can search fot the correct term.

Post a reply

Enter your message below

Sign in or Join us (it's free).