bettybarnes 7 Posting Whiz in Training
Recommended Answers
Jump to Posttry,
TextBox1.Text="1";
Jump to PostBecause the Text property of TextBox is of type string and not of type integer.
C# is very picky about this, and as a matter of fact this is one of the things I like about C# :)
Alternatively you could write: TextBox1.Text = 1.ToString();
Jump to PostLearn and use String class methods.
Jump to PostThanks for the replies.. How about if i wanted to delete the last text input in the textbox say for example the characters inside the textbox is: LATER. I want to remove the last letter R. How will i do this in C#?
Think about how you would do it …
All 13 Replies
kvprajapati 1,826 Posting Genius Team Colleague
bettybarnes 7 Posting Whiz in Training
ddanbe 2,724 Professional Procrastinator Featured Poster
cfwebdeveloper 9 Junior Poster in Training
bettybarnes 7 Posting Whiz in Training
kvprajapati 1,826 Posting Genius Team Colleague
skatamatic 371 Practically a Posting Shark
arunkumars 14 Junior Poster
bettybarnes 7 Posting Whiz in Training
bettybarnes 7 Posting Whiz in Training
bettybarnes 7 Posting Whiz in Training
ckchaudhary 5 Newbie Poster
Mitja Bonca 557 Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.