TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mohamed Sidi Mohamed
NA
7
0
How to write Null character in TextBox?
Nov 9 2009 4:55 PM
I have this piece of code, which is an event handler of a button1's click.
private void button1_Click(object sender, EventArgs e)
{
string str = "trj\0klk";
textBox1.Text =c.ToString() ;
}
As you can see in the previous code, i want to write "trj\0klk" string in the textBox1, but when i run this application, only "trj" appear in textBox1, because the compiler thought the character "\0" (the fourth character) is the null terminator character, so it stoped reading the string when reached it. How can I solve this problem?
Reply
Answers (
6
)
Help Me! C# Question
APP in Windows with 2 browsers and control buttons to autologin,autocalculate,status, control, and click at certain events after certain time