How to populate drop down box with registery value
|
Beginning VB 6For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
How to populate drop down box with registery value
Hi all i have vb 6 form and it has form with drop down box and text box . I want to populate the drop down box with values from registery but i do not know how .I also want to be able write to registery key when user types in dropdow box.
Furthermore, how to write to registery when user types in text box and presses enter or clicks command button. I be happy if an expert show me how i can read and write to a perticuler registery from dropdown box and text box .Thanks
quote:Originally posted by peko
Hi,
simple way is VB functions:
GetSetting -> to get information from Registry
SaveSetting -> to save value to Registry
or harder way are API functions
RegOpenKey
RegCloseKey
RegEnumValue
ect...
Peko
RegEnumValue
could u paste an example code that retrives 2 difrent keys in to 2 combo box.Thanks