OK well, as my very first VB program i am creating "sticky notes" little reminders that sit on your desktop with notes u can type in. (im sure you all know what im talking about).
Anyways, i have most of the functionality down except but i have some problems:
1. i am unaware of how the user can save their notes so next time it starts up it will load the most recent note they have wrote down.
2. How to make the title bar not visible
3. To give the user the option to have the program run on startup. I have most of the code down for this one but i get these errors
(i spaced it so it is easier to read)
ERRORS:Code:Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged If CheckBox1.Checked = True Then My.Computer.Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True) My.Computer.Registry.LocalMachine.SetValue("Sticky Notes", Application.ExecutablePath.ToString("C:\Users\derrek\Desktop\Sticky Notes.application") & " -min") My.Computer.Registry.LocalMachine.Close() Else : My.Computer.Registry.LocalMachine.DeleteValue("Sticky Notes", False) End If End Sub End Class
A first chance exception of type 'System.NullReferenceException' occurred in Sticky Notes.exe
A first chance exception of type 'System.InvalidCastException' occurred in Sticky Notes.exe
A first chance exception of type 'System.InvalidCastException' occurred in Sticky Notes.exe
if anyone wants to see the code so far just ask me to post it
You help is greatly appreciated.




Reply With Quote