Api functions with VB 2005

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

We are trying to programm Save and Retrieve Settings in the Windows Registry
with VB 2005, but it doesn't work. What is explained in Article ID : 145679
Last Review : July 15, 2004 Revision : 1.2 , works fine with VBA - Access
but not
with VB 2005. Can anybody give an input about the differences to apply for
these functions with VB 2005?
Thanks --
Friedi
 
Friedi,

First of all you can ask VB.NET questions in:

microsoft.public.dotnet.languages.vb

You don't use API for the registry functions because you using the
'Microsoft.Win32' class. The article you are looking at is Pre .NET

Imports Microsoft.Win32

Dim reg As RegistryKey = Registry.CurrentUser.OpenSubKey("Key Here", True) '
Write Access... (False = read only)

....

Here's a KBase article:

http://support.microsoft.com/kb/316151/en-us

I hope this helps,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top