Link to home
Start Free TrialLog in
Avatar of derek7467
derek7467

asked on

Saving combobox items to registry

I'm using the following code to write single textboxes to the registry, how can i write combobox items to the registry???  So if i have a combobox named combobox1, how would i save each entry to the registry?

Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software", True)
        ' Add one more sub key 
        Dim newkey As RegistryKey = key.CreateSubKey("Service Desk Tools\\SCCM Reports")
        ' Set value of sub key 
        newkey.SetValue("Workstation Advertisement Lookup", tbAC.Text)
        newkey.SetValue("Workstation Collection", tbWC.Text)

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of derek7467
derek7467

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial