OpenSubKey VB.NET Two Backslashes

A

alowe

I'm posting this so others can avoid a headache.

The OpenSubKey function of the RegistryKey object in .NET does require
two backslashes between keys on some machines (ex. "Software\
\Microsoft\\Office") even with VB.NET.

I came accross an issue where my development and test machines did not
require the double slashes, but the client's machine did. The
application was written in VB with VS 2005. I'm not sure what was
different about the client's computer, but suspect it may have been an
OS difference.
 
C

Cor Ligthert[MVP]

In which version of VB.Net, this is the name for the versions 2002 and
2003, do you mean one of those?
 
H

Herfried K. Wagner [MVP]

Cor Ligthert said:
In which version of VB.Net, this is the name for the versions 2002 and
2003, do you mean one of those?

The OP states "The application was written in VB with VS 2005".
 
C

Cor Ligthert[MVP]

The OP states "The application was written in VB with VS 2005".

--
You are right, and I have looked for it twice. Probably not awake at that
time.

Sorry

Cor
 

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

Top