Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For 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
 
Old April 15th, 2006, 12:32 AM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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

http://i5.photobucket.com/albums/y18...od007/save.jpg
 
Old April 20th, 2006, 01:14 AM
Authorized User
 
Join Date: Mar 2006
Posts: 80
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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

 
Old April 20th, 2006, 03:00 AM
Friend of Wrox
 
Join Date: Mar 2005
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Populate a text box from a combo box value dnf999 Access VBA 7 February 6th, 2012 02:24 PM
Populate the drop down ashraf.khan Struts 2 August 2nd, 2006 03:06 AM
How to populate form textbox with registery key va method Pro VB 6 3 May 23rd, 2006 12:21 AM
Populate a drop down from database topshed Access 5 November 29th, 2004 09:38 PM
Populate List Box by Combo Box Selection mmcdonal Access 2 June 15th, 2004 12:08 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.