Solved

Saving combobox items to registry

Posted on 2014-10-22
1
178 Views
Last Modified: 2014-10-23
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

0
Comment
Question by:derek7467
1 Comment
 

Accepted Solution

by:
derek7467 earned 0 total points
ID: 40399507
Figured it out, use savesetting function of vb.net

http://msdn.microsoft.com/en-us/library/3kz7fyks(v=vs.90).aspx
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now