473,480 Members | 1,857 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Textbox backspace & delete

Hi everyone,

Can anyone supply me with a C# windows sample/source code for backspacing
and deleting while working with textbox's. Errr darn O/S crash lost
everything.

Thanks all in advance

MikeY
Nov 17 '05 #1
1 2265
I found this code, for those that are interested.

string mystring = this.txtBoxOutput.Text;

if(this.txtBoxOutput.Text.Length >0)

{

mystring =
this.txtBoxOutput.Text.Remove(this.txtBoxOutput.Te xt.Length -1,1);

this.txtBoxOutput.Text = mystring;

}

If anyone has better code please post a copy here so I can view it. txs
"MikeY" <mi*******@yaho.com> wrote in message
news:3K*******************@news20.bellglobal.com.. .
Hi everyone,

Can anyone supply me with a C# windows sample/source code for backspacing
and deleting while working with textbox's. Errr darn O/S crash lost
everything.

Thanks all in advance

MikeY

Nov 17 '05 #2

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

Similar topics

2
4558
by: Thermidor | last post by:
Hi All, I have a page with three textboxes. Call them txt1, txt2, and txt3. Using javascript I need to populate txt3 with whatever has been typed into txt1 and txt2 as the information is being...
1
1299
by: Ruth Mermelstein | last post by:
In a dollaramt field, if I enter 123.45, and I want to change it to 123.46, I must place my cursor after the 6 and press backspace. If I place it before the 5 and hit delete, nothing happens. Is...
9
5908
by: Toralf Kirsten | last post by:
Hi, we installed db2 v8.1 on red hat linux 9. Unfortunately, the backspace and the delete button doesn't work in the right way. Instead of deleting chars, control characters are inputed. That...
0
1125
by: jm | last post by:
I have no key events ANYWHERE, but for some reason, I cannot use the backspace key in my textbox. Even if I delete the textbox and put a new one. I can use any key but the Backspace. Any ideas? ...
7
10364
by: Tamir Khason | last post by:
I have textbox. I do something in each Keypress (kindof validation) in order not to rewrite all text inside I'm using AppendText method to write in. BUT I'm unable to add backspace (\b); e.g I have...
2
1686
by: H. Blijlevens | last post by:
Hi y'all! I'm trying to adapt a VB.Net application that a former employee built to keep track of product issues that our customers report. While doing so, I bump into the following problem: a...
7
8660
by: DazedAndConfused | last post by:
Curently I manualy code keypress edits. i.e. allow only 3 digits before decimal and two digits after decimal in .NET. Is there an easy solution to mask text boxes? The MSMASK32.OCX from vb6...
5
10494
by: Bill | last post by:
Hello, Could anyone post some simple code or advise me on how I can display the SSN number like *****7890 in a text box, even thought the user entered 1234567890, and the value of the variable...
10
2437
by: garyusenet | last post by:
I have a multiline textbox. The size of the text box should be 75 characters wide, and 5 lines in height like this: - <---75 characters--> <---75 characters--> <---75 characters--> <---75...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7103
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
6758
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...
1
4799
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
4499
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
3003
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
203
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.