answersLogoWhite

0


Best Answer

VB6 has some basic registry commands built in. These only affect the current user (They use the HKEY_CURRENT_USER tree), but are more than enough for storing settings, etc.

To get a setting from the registry :

sVar = GetSetting("AppName", "Section, "Key", ["Default Value"])

To save a setting to the registry :

SaveSetting "AppName", "Section", "Key", sVar

These will create a new string registry key HKEY_CURRENT_USER\Software\VB and VBA Program Settings\AppName\Section\Key with sVar as it's value.

If you want any more 'proper' registry access, you need to use the Windows API. There are some good code samples & drop in modules at DevX if you need them.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you add entries to the registry using vb6?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is difference between vb5 vb6?

VB6 is a more recent and more advanced version of visual basic.


Solving transportation problem in Visual basic programming?

hi every body my name is mohamed i live in egypt i am a programer with vb6 i ca solve the transport problem using vb6 just keep in touch with me at my phone number 002 0106909294 thnks


How do you convert vb6 to dmg?

A .vb6 file is visual basic 6 source code, sometimes with it are .frm files that you would need. A .dmg is a Macintosh binary. you would have to find a program to compile the vb6 code to a Macintosh binary.


How can you execute a new line in VB6?

vbNewLine


Differences butween the vb6 asnd vbnet?

Please refer the following link, there you can find useful information about differences between VB6 and VB .NET


How do you make a cp trainer with free member?

use vb6


Free vb6 source code download for submission?

thanks


How can you make a vb6 project a web based project or how will you able to embed vb6 project or vb.net project into asp.net website?

you simply cant, unless you know how to upload exe's to the internet.


How can you print reports by vb6 using Crystal Report?

is : CrystalReport1.Reset CrystalReport1.ReportFileName="MyReport.rpt" CrystalReport1.Destination=(Printer) CrystalReport1.Action=6 CrystalReport1.DiscardSaveData=True


I am using the imgscan.ocx control in VB6 to scan the using the Hpscanjet2400 scanner.By default the scanner is set as Millions of colors option How I can change this option through VB 6 code.?

imgscan.SetScanCapability 100, 1 ' Noir et blanc


Advantages visual basic 2003to visual basic 6.0?

This may suprise you but visual basic 2003 was realeased a few years after vb6 vb6 I think was in 1998 and 2003 obviously in 2003


Vb6 vs visual c sharp in terms of compiling?

VB6 code is directly compiled by VB6 compiler into native code. However C# code is targeted for CLR and goes through two level of compilattion. It is first compiled into MSIL and then JIT compiled to native code. This ensures interoperability among .NET based lanuages and hence language independence for them.