.NET Programming

How to read and write to the old VB HKEY_CURRENT_USER registry Key in .NET

Keywords: VB and VBA Program Settings, .NET, Registry, HKEY_CURRENT_USER



can i buy the abortion pill online

can i buy abortion pill online online

tadalafil generico sandoz

pillola cialis controindicazioni website


cialis generico

domperidone sandoz

domperidone sandoz

mixing viagra and weed

mixing zoloft and weed mipnet.dk

lamictal and pregnancy mayo clinic

lamictal pregnancy folic acid

buy generic cialis online

cialis generic date read

melatonin pregnancy third trimester

melatonin and pregnancy blog.smartofficecloud.com

serevent inhaler generic

serevent dosage topogroup.com

levitra generikus


sertraline and alcohol

sertraline and alcohol

levitra 5 mg

levitra pret blogs1.welch.jhmi.edu

viagra prodej plzen

viagra cena na predpis


cialis cena 20 mg

is naltrexone and naloxone the same thing

naloxone and naltrexone link

acquistare cialis con paypal

acquistare cialis in farmacia hk.onkyo.com

cialis 20mg vs 10mg

cialis cena bez recepty singlvkuchyni.cz

can naltrexone be abused

ldn and depression online

tadalafil generico

acquistare cialis con paypal blog.pragmos.it

abortion side effects

buy abortion pill

        //Replace AppName with your identifier

        //using Microsoft.Win32;



        public string GetHKCUSERSetting(string StringName, string Default)


            string s = Default;

            RegistryKey rk = Registry.CurrentUser.OpenSubKey(

                           "Software\\VB and VBA Program Settings\\AppName\\Local");

            if (rk is RegistryKey)

                s = (String)rk.GetValue(StringName);

            if (s == null)

                s = Default;

            return s;



        public string SetHKCUSERSetting(string StringName, string KeyValue)


            RegistryKey rk;

            string ErrorString = "";




                rk = Registry.CurrentUser.CreateSubKey(

                        "Software\\VB and VBA Program Settings\\AppName\\Local");

                if (rk is RegistryKey)

                    rk.SetValue(StringName, KeyValue);


            catch (Exception e)


                ErrorString = e.ToString();



            return ErrorString;



 PTerryWave LLC      Return to Programming Listing