Click here to Skip to main content
15,900,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all,

Could you please send a code how a char is deleted from a Syncfusion.Windows.Forms.Tools.TextBoxExt when pressing a delete key from keyboard.
Posted
Updated 7-Sep-10 8:13am
v3

You don't have to write any code for this.
The Operating System is taking care of automatically.
Just press the delete key while in any TextBox, and the character after the insersion point will get deleted. It's that simple.
So, the code is this:


(no code necessary)
 
Share this answer
 
Comments
Dalek Dave 7-Sep-10 7:13am    
Short and Accurate Answer!
sKumarnvs 7-Sep-10 7:22am    
Hai Toli

But it is not handled for a text box of type Syncfusion.Windows.Forms.Tools.TextBoxExt type
T.Saravanann 7-Sep-10 7:25am    
Reason for my vote of 5
Good & Correct Answer..
Toli Cuturicu 7-Sep-10 7:50am    
That is not a TextBox. It is a Syncfusion.Windows.Forms.Tools.TextBoxExt.
Update your question, please.
sKumarnvs 7-Sep-10 8:11am    
ok it is syncfusion control could u please tell me how can i delete it
The functionality of the textbox is inherent, you do not need to do anything special when the text box has focus.

If the textbox does not have focus, you will need to handle the keypress event, read which key is pressed and then trim the textbox by 1 char.

Have a go at writing some code yourself, and ask a specific question when you have a problem.
 
Share this answer
 
Comments
Dalek Dave 7-Sep-10 7:13am    
Fair enough, and a good task set.
sKumarnvs 7-Sep-10 7:26am    
hai
Thanks for u r response
could u please tell me pressing delete key from keyboard ,
is it keydown event or keypress event
DaveAuld 7-Sep-10 7:35am    
Try it yourself, look at the event arg e; they give you different things, you also have a keyUp event which can be used.
sKumarnvs 7-Sep-10 7:43am    
Thnanks for ur answer i will try it
sKumarnvs 7-Sep-10 7:55am    
Thnak u very much i can handle delete key in KeyUp event but could u please tell me hoe can i delte a char at the cursor points.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900