473,382 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

OpenSubKey VB.NET Two Backslashes

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.
Jan 3 '08 #1
4 2972
Scary!!!!!!!!
"alowe" <aa********@gmail.comwrote in message
news:9b**********************************@d21g2000 prf.googlegroups.com...
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.
Jan 3 '08 #2
In which version of VB.Net, this is the name for the versions 2002 and
2003, do you mean one of those?
"alowe" <aa********@gmail.comschreef in bericht
news:9b**********************************@d21g2000 prf.googlegroups.com...
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.
Jan 3 '08 #3
"Cor Ligthert[MVP]" <no************@planet.nlschrieb:
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".

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Jan 3 '08 #4
>
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

Jan 3 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Margaret MacDonald | last post by:
I've been going mad trying to figure out how to do this--it should be easy! Allow the user to enter '\_sometext\_', i.e., literal backslash, underscore, some text, literal backslash, underscore...
6
by: Mikheil | last post by:
Hello! I need to translate file destination name with one backslashes "c:\program files\directory\file.txt" to string containing double backslashes "c:\\program files\\directory\\file.txt" If...
6
by: supercomputer | last post by:
I am using this function to parse data I have stored in an array. This is what the array looks like: , , , , , , , , , , , , , , , , , , , , , , , ] This is the code to parse the array:
2
by: cricfan | last post by:
I'm parsing a text file to extract word definitions. For example the input text file contains the following content: di.va.gate \'di_--v*-.ga_-t\ vb pas.sim \'pas-*m\ adv : here and there :...
5
by: Steve Bottoms | last post by:
Hi, all... Trying to determine how to check the state of OpenSubKey when called. What is the return value if the requested subkey doesn't exist?? I try a GetType on the result but only get a...
2
by: wylbur37 | last post by:
When using a form with an input textbox such as the following ... <input type="text" name="field1" size=30> I discovered that when a backslash (\) is typed into the textbox, when I later check...
3
by: =?Utf-8?B?cmFuZHkxMjAw?= | last post by:
OpenFileDialog gives me the following, which I place in tbDevPath.Text: x:\\myVob\\mySolution\\mySolution.sln I really need this path to be single-backslashes, not double-backslashes, so I...
3
by: thephatp | last post by:
This is incredibly strange. I used regedit and went to HKEY_LOCAL_MACHINE and create a new subkey under "Software". I added a few more, then went into code to try to read them. I kept getting...
7
by: JohnF | last post by:
I have a function textag($expression){...} whose $expression argument is a string that can contain substrings like \alpha with one backslash or like a&b\\c&d with two backslashes. If I write...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.