Can't write '\' - backslash in Visual Studio .NET

A

Ask

Hi,

I'm currently having strange problems in Visual Studio .NET.
No matter what language I'm writing my programs in, I still
can't write the sign "\" - backslash. All I get is a "Y" with
two "-" over it.
If I cut and paste this character into Notepad I get the backslash!
This creates a lot of problems when I try to open files at c:\. etc.

Any idéas?

Regards,
Martin
 
G

Guest

You can use the @ operator.
eg. string str = @"c:\abc"

-Adrian
Developer Div
Microsoft
 
A

Ask

Hi,

Thanks for your quick reply.
It's a good suggestion if I could write the "\" :)

If I try this it would end up with this (where the Y will have
two '-' over it):
string str = @"c:Yabc"
The editor don't let me write the "\"....

Regards,
Martin
 
S

Sriram Krishnan

Do you have any IMEs or alternative keyboard layouts installed? They might
be causing this problem
 
M

Marc Bernard

What's your locale set to?


Ask said:
Hi,

Thanks for your quick reply.
It's a good suggestion if I could write the "\" :)

If I try this it would end up with this (where the Y will have
two '-' over it):
string str = @"c:Yabc"
The editor don't let me write the "\"....

Regards,
Martin
 
A

Ask

Hi!

Somehow I've mannaged to install Japanese....
Issue solved, Thanks for your help!


Regards,
Martin
 

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