By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,984 Members | 2,615 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,984 IT Pros & Developers. It's quick & easy.

how to read/write System Registry keys

P: 8
hi,

I am new to VB.. I am dedveloping a tool in which there would be a browser/text box to open the desired file.. the problem here is that i want to remember the old file that i opened last time when i run the exe.. i came to know that this can be done by adding the file name as keys in the system registry. I wanted to know how can i edit/read/write into system registry using VB 6.0. I want to create a registry entry and add keys with the file names. please tell me the syntax and the necessary components to be added to get the desired result

thanks
Sep 7 '07 #1
Share this Question
Share on Google+
4 Replies


hariharanmca
100+
P: 1,977
hi,

I am new to VB.. I am dedveloping a tool in which there would be a browser/text box to open the desired file.. the problem here is that i want to remember the old file that i opened last time when i run the exe.. i came to know that this can be done by adding the file name as keys in the system registry. I wanted to know how can i edit/read/write into system registry using VB 6.0. I want to create a registry entry and add keys with the file names. please tell me the syntax and the necessary components to be added to get the desired result

thanks
you can use below methot to get registory key value

Expand|Select|Wrap|Line Numbers
  1. GetSetting
below is to save Reg key

Expand|Select|Wrap|Line Numbers
  1. SaveSetting
Sep 7 '07 #2

QVeen72
Expert 100+
P: 1,445
Hi,

use the following API's:

GetSetting and SaveSetting

REgards
Veena
Sep 7 '07 #3

sgrec7
P: 59
hi,
how to read/write System Registry keys
guess what, NO ONE should play with regedit, that is just as bad as 'cleaning out the windows folder'

u want my advice ??? DONT touch the registry
Sep 7 '07 #4

hariharanmca
100+
P: 1,977
guess what, NO ONE should play with regedit, that is just as bad as 'cleaning out the windows folder'

u want my advice ??? DONT touch the registry
Yes that may happen. But that is Necessary for any application for there initial values

But make sure you have to play within the registry key created by you.
Sep 7 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.