?
Solved

Saving combobox items to registry

Posted on 2014-10-22
1
Medium Priority
?
216 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

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month9 days, 14 hours left to enroll

762 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