answersLogoWhite

0

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

16y ago

What else can I help you with?

Related Questions

How do you add spaces in flexgrid vb6?

In VB6, to add spaces between items in a FlexGrid, you can adjust the RowHeight property to increase the height of each row, effectively creating visual separation. Additionally, you can insert empty rows between your data rows by adding blank entries. For finer control, you can use the CellMargin property to set margins within the cells, enhancing the spacing appearance without altering row data.


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


Free vb6 source code download for submission?

thanks


How do you make a cp trainer with free member?

use vb6


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


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


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