473,473 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

ControlChars

Hi all,

Does anyone know what is equivalent to ControlChars class
in C#?

Thank you

Simon
Jul 21 '05 #1
1 9334
Simon,
Does anyone know what is equivalent to ControlChars class
in C#?


There's no equivalent, C# doesn't have "built in" classes the same way
VB.NET does. You can, however, reference Microsoft.VisualBasic.dll
from C# and use the ControlChars class that way if you really want.

But in C# you usually use character escape sequences instead. For
example "Foo" & ControlChars.Tab & "Bar" in VB.NET can be written as
"Foo\tBar" in C#.

ControlChars.Tab -> \t
ControlChars.Cr -> \r
ControlChars.Lf -> \n

and so on.

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2

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

Similar topics

0
by: Mark | last post by:
Hi all, i'm trying to serialize a class. Using the constructor of XmlSerializer i get these (odd?) errors: "File or assembly name goseij9w.dll, or one of its dependencies, was not found"....
3
by: Mark | last post by:
Hi all, i'm trying to serialize a class. Using the constructor of XmlSerializer i get these (odd?) errors: "File or assembly name goseij9w.dll, or one of its dependencies, was not found"....
1
by: Cesar Zam | last post by:
Hello I try to fire a javascript function from vb.net. This function will create a popup window and inside of it display a crystal report: this is what I got so far Private Sub...
6
by: Russell Stevens | last post by:
I use a WinForm app for users to upload a file to my server. Basically one line of code; Response = WC.UploadData(MyUrl, "PUT", MyByteArray) Works fine except for larger files. After about 104...
8
by: kerberoz | last post by:
whats the equivalent following ControlChars.Lf, ControlChars.Cr, ControlChars.CrLf code in vb.net
5
by: moondaddy | last post by:
I've seen how people have snippets of code stored over by the tool box and then can drag them into a code page. What do you call this and what's a reference on how to do this? Thanks. --...
1
by: Simon | last post by:
Hi all, Does anyone know what is equivalent to ControlChars class in C#? Thank you Simon
3
by: Lou | last post by:
Which is more efficient? -Lou
0
by: hamzeh83 | last post by:
hi all, iam new on .net,,, iam make it as string and convert it to xml how i can recieve XML.. Private Sub btnRequest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.