Solved

Saving combobox items to registry

Posted on 2014-10-22
1
205 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

695 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