i have a problem. i am new to VB.net and need help with my project.
i used a colordialog box to change the color of the background of the form and need to save this color change in registry so that the color I picked from the color dialog box will appear when i restart the program.
I need help with the savesetting and getsetting from registry codings in VB.net.
Can anyone help me please?
Albert
have you spent sometime to learn about registry....???
I am giving you only the syntax of coding......please get a book and read about registry handling...........
syntax to save data to registry...............
SaveSetting ("<<Application Name>>", "<<Registry Folder Path>>", "<<Key Name>>", <<Value of the Key>>)
'example to save data to registry
-
-
SaveSetting("TestApp", "Initialize", "Top", 75)
-
'example to get data from registry
-
-
Dim regVal As Integer
-
regVal = CType(My.Computer.Registry.GetValue("Initialize", "Top", 0), Integer)
-