Working on a small app and i am having some issues getting it to work. Now let me say right up front i am NOT a programmer and have only worked with VB studio to build/compile code that has already been created for my company. So i know my way around VB studio but the coding itself is over my head.
My goal is to create a small .exe that will open a window with a button on it, if the button is clicked i want a reg key deleted (HKLM/Software/MyApp/Confi
g/ KEY:DMAC). sounds simple enough i though to myself.............
I have a basic form and have created a new button (yeah, i know, that's the hard part). I used the "insert snippet" option to select the delete reg key code, the Code attached in the code field indicates i'm missing the "method body" when i go to build the project though. The code listed is the ONLY code i have for the form, what am i missing?
Looking at the code, it is also not referencing the button anywhere, i can't figure out how to make that link.
It would also be good if clicking the button also disabled the .exe itself so that it was only runnable once per machine (by storing a .reg key woudl be acceptable).
Would be awesome if someone was bored enough to slap such an app together for me but any help at all woudl be great.
Much thanks in advance!
Using key As RegistryKey = My.Computer.Registry.LocalMachine.OpenSubKey("Software\MyApp\Config")