Click here to Skip to main content
15,886,963 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am making a app which just has a timer which is continues working and its actually alarm with given time just want to run always when windows start i did it i just add it in registry at windows startup


i try to at form start
me.hide()

but it is not working form same as it is it is must hide and working back hand but it is not need help i just wat to run it as date will matched accordingly system date otherwise it is always hide and works beside no one know what is running backhand

thanks

What I have tried:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim regStarUP As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\RUN", True)
        regStarUP.GetValue(IO.Path.GetFileNameWithoutExtension(Label1.Text))
        VALUE = regStarUP.GetValue(IO.Path.GetFileNameWithoutExtension(Label1.Text))
        If VALUE = Nothing Then
            
            regStarUP.SetValue(IO.Path.GetFileNameWithoutExtension(Label1.Text), Label1.Text)
            regStarUP.Close()
            MsgBox("WRITE COMPLETE :")
        Else

            MsgBox("already file there ")

        End If
       


    End Sub
Posted
Updated 20-Dec-18 23:57pm
Comments
OriginalGriff 21-Dec-18 4:40am    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
Use the "Improve question" widget to edit your question and provide better information.

1 solution

you can use notification control. which runs in a background.

Visit below video tutorial:

C# Tutorial 62:How to Use the NotifyIcon Control with C# - YouTube[^]
 
Share this answer
 
Comments
irfanansari 23-Dec-18 8:01am    
sir thanks a lot i used a second way just can you help in this if you can it is working but i want to use this in condition it is working normal always i want to same this as checkedbox checked true its works other wise not
'Protected Overrides Sub OnLoad(ByVal e As EventArgs) 'by this code just Form form
' Visible = False
' ShowInTaskbar = False
' Opacity = 0
' MyBase.OnLoad(e)
'End Sub

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900