Solved

Saving combobox items to registry

Posted on 2014-10-22
1
175 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

744 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

10 Experts available now in Live!

Get 1:1 Help Now