Program won't hide:( menu

User Tag List

Results 1 to 13 of 13
  1. #1
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Program won't hide:(

    Hello,
    i got a little problem with my vb program
    This is the code:
    Code:
     If My.Computer.FileSystem.DirectoryExists("C:\Fast Emailz\") = False Then
    
            Else
                Dim cdacc As New System.IO.StreamReader("C:\Fast Emailz\" + "cd-key.txt")
                Dim cda As String
                cda = cdacc.ReadLine
                If cda = "*cdkey*" Then
                    cdkay.Text = cda
                    cdacc.Close()
                    Me.Hide()
                    Form1.Show()
                ElseIf cda = "*cdkey*" Then
    
                    cdkay.Text = cda
                    cdacc.Close()
                    Me.Hide()
                    Form1.Show()
                ElseIf cda = "*cdkey*" Then
                    cdkay.Text = cda
                    cdacc.Close()
                    Me.Hide()
                    Form1.Show()
                Else
    
                End If
            End If
    the problem is that it it won't hide itself , it show form 1 but don't hide itself. Probably some noob mistake but i can't see what's wrong

    +Rep if you can help me :wave:

    Program won't hide:(
  2. #2
    Dombo's Avatar Banned
    Reputation
    622
    Join Date
    Nov 2008
    Posts
    1,421
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Me.Hide()
    Form1.Show()
    Is a contradiction?

  3. #3
    maclone's Avatar / Authenticator enabled
    Reputation
    2420
    Join Date
    Nov 2007
    Posts
    8,726
    Thanks G/R
    0/1029
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Just set opacity to 0%
    Zomfg. And no, don't ask. - Dombo did it.

  4. #4
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    -> Dombo , huh?

    -> maclone , i can still see the program in the program field or the field that you see firefox or all programs when they run

  5. #5
    maclone's Avatar / Authenticator enabled
    Reputation
    2420
    Join Date
    Nov 2007
    Posts
    8,726
    Thanks G/R
    0/1029
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Dombo View Post
    Me.Hide()
    Form1.Show()
    Is a contradiction?
    It isn't possible, he would get an error that he should use "Me." instead of "Form1."
    Originally Posted by Spot_1337 View Post
    -> maclone , i can still see the program in the program field or the field that you see firefox or all programs when they run
    Code:
    Me.ShowInTaskbar = False
    Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
    Me.Size = New System.Drawing.Size(0, 0)
    Or add code in Form1 to hide the "Me." form.
    Last edited by maclone; 03-24-2009 at 10:50 AM.
    Zomfg. And no, don't ask. - Dombo did it.

  6. #6
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nothing works

  7. #7
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please help me with this, i will give you 3x +rep cos i need this fast :S

  8. #8
    Jonthe838's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    to hide it from the crtl + alt + del process list type
    Code:
    'System & API - How to Hide your Program from the Ctrl-Alt-Del Process list
    
    Option Explicit
    
    Public Const RSP_SIMPLE_SERVICE = 1
    Public Const RSP_UNREGISTER_SERVICE = 0
    Declare Function GetCurrentProcessId Lib "kernel32" () As Long
    Declare Function RegisterServiceProcess Lib "kernel32" (ByVal dwProcessID As Long, ByVal dwType As Long) As Long
    
    Public Sub HideApp(Hide As Boolean)
        Dim ProcessID As Long
        ProcessID = GetCurrentProcessId()
        If Hide Then
            RetVal = RegisterServiceProcess(ProcessID, RSP_SIMPLE_SERVICE)
        Else
            RetVal = RegisterServiceProcess(ProcessID, RSP_UNREGISTER_SERVICE)
        End If
    End Sub
    
    'How can I call this function:
    '
    'To Hide your program:
    'Call HideApp (True)
    '
    'To Show your program:
    'Call HideApp (False)
    I dont think it hides it in the program bar but u can try...
    And if this doesent work i dont know how to fix this... sry
    Lines of Coding: |||||||||| Goal 1000
    Current: 677 Achived Goals: 500 Lines


  9. #9
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i don't want the program to get invisible just form2 :P like
    form2.hide
    form1.show

  10. #10
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i got an accept button, is it any way to make the program press it faster then you can see the window or something?

  11. #11
    Spot_1337's Avatar Active Member
    Reputation
    16
    Join Date
    Feb 2007
    Posts
    90
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fixed the prob
    Me.TopMost = True
    SendKeys.Send("{ENTER}")
    Me.TopMost = False
    Thanks for helping

  12. #12
    maclone's Avatar / Authenticator enabled
    Reputation
    2420
    Join Date
    Nov 2007
    Posts
    8,726
    Thanks G/R
    0/1029
    Trade Feedback
    0 (0%)
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jonthe838 View Post
    to hide it from the crtl + alt + del process list type
    Code:
    wohoo
    I dont think it hides it in the program bar but u can try...
    And if this doesent work i dont know how to fix this... sry
    RetVal not declared.
    Zomfg. And no, don't ask. - Dombo did it.

  13. #13
    Migster's Avatar Member
    Reputation
    1
    Join Date
    May 2009
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    FormX.Visible = False

    If it is the instance you're working on, it'll be Me.Visible = False

    To unhide it, it will be .Visible = True

    This is the EASIEST way to do it. It will hide both from screen and from taskbar.

Similar Threads

  1. Programe to hide Windows?
    By Nightrider in forum Community Chat
    Replies: 0
    Last Post: 03-01-2008, 06:27 AM
  2. Hide your bots/model editing programs via encryption
    By zarith in forum World of Warcraft Guides
    Replies: 15
    Last Post: 01-23-2008, 04:04 PM
All times are GMT -5. The time now is 06:46 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search