Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
AnswerRe: Managing close button ? Pin
Robert Rohde19-Apr-06 5:04
Robert Rohde19-Apr-06 5:04 
QuestionPrint dialog as e.g. in notepad (WinXP, IE) Pin
Wizard_0119-Apr-06 3:53
Wizard_0119-Apr-06 3:53 
AnswerRe: Print dialog as e.g. in notepad (WinXP, IE) Pin
Ed.Poore19-Apr-06 9:15
Ed.Poore19-Apr-06 9:15 
GeneralRe: Print dialog as e.g. in notepad (WinXP, IE) Pin
Wizard_0119-Apr-06 9:22
Wizard_0119-Apr-06 9:22 
GeneralRe: Print dialog as e.g. in notepad (WinXP, IE) Pin
Ed.Poore19-Apr-06 9:27
Ed.Poore19-Apr-06 9:27 
QuestionC# Windows app to Web app Pin
StrayGrey19-Apr-06 3:51
StrayGrey19-Apr-06 3:51 
AnswerRe: C# Windows app to Web app Pin
Robert Rohde19-Apr-06 5:09
Robert Rohde19-Apr-06 5:09 
QuestionFormating text in textBox Pin
conrado719-Apr-06 3:41
conrado719-Apr-06 3:41 
I want in my textBox enter characters in the following way:
private void textBox2_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)<br />
		{<br />
			int i = this.textBox2.SelectionStart;<br />
			<br />
			if(i<this.textBox2.TextLength)<br />
			{				<br />
				this.textBox2.Text = this.textBox2.Text.Remove(i,1);<br />
				this.textBox2.SelectionStart = i;<br />
			}<br />
		}<br />


which is mean that every single character which is entered should replace existing character unless the cursor is on the end of the text.

This sample code doesn`t work I want.
Speaking gennerally I want in my text Box to replace all characters with new entered unless the cursor is on the end of the text.
Can anyone help me?

-- modified at 9:54 Wednesday 19th April, 2006
AnswerRe: Formating text in textBox Pin
MCSD-Gandalf19-Apr-06 5:35
MCSD-Gandalf19-Apr-06 5:35 
GeneralRe: Formating text in textBox Pin
conrado719-Apr-06 10:58
conrado719-Apr-06 10:58 
AnswerRe: Formating text in textBox Pin
The Nemesis19-Apr-06 20:25
The Nemesis19-Apr-06 20:25 
QuestionSetDataBinding For DGV !!! Pin
mrkeivan19-Apr-06 3:36
mrkeivan19-Apr-06 3:36 
AnswerRe: SetDataBinding For DGV !!! Pin
Office Lineman19-Apr-06 8:46
Office Lineman19-Apr-06 8:46 
QuestionHow to Improve Win From's Graphics !! Pin
mrkeivan19-Apr-06 3:21
mrkeivan19-Apr-06 3:21 
AnswerRe: How to Improve Win From's Graphics !! Pin
LongRange.Shooter19-Apr-06 3:35
LongRange.Shooter19-Apr-06 3:35 
GeneralRe: How to Improve Win From's Graphics !! Pin
mrkeivan19-Apr-06 3:39
mrkeivan19-Apr-06 3:39 
GeneralRe: How to Improve Win From's Graphics !! Pin
LongRange.Shooter19-Apr-06 3:52
LongRange.Shooter19-Apr-06 3:52 
AnswerRe: How to Improve Win From's Graphics !! Pin
Robert Rohde19-Apr-06 4:48
Robert Rohde19-Apr-06 4:48 
Questiondataset problem Pin
Khepry19-Apr-06 3:17
Khepry19-Apr-06 3:17 
AnswerRe: dataset problem Pin
LongRange.Shooter19-Apr-06 3:30
LongRange.Shooter19-Apr-06 3:30 
Questionpopup menu Pin
vatzcar19-Apr-06 3:11
vatzcar19-Apr-06 3:11 
AnswerRe: popup menu Pin
LongRange.Shooter19-Apr-06 3:26
LongRange.Shooter19-Apr-06 3:26 
QuestionEditing an XML node in C# Pin
AnneThorne19-Apr-06 2:48
AnneThorne19-Apr-06 2:48 
AnswerRe: Editing an XML node in C# Pin
LongRange.Shooter19-Apr-06 3:19
LongRange.Shooter19-Apr-06 3:19 
AnswerRe: Editing an XML node in C# Pin
conrado719-Apr-06 3:32
conrado719-Apr-06 3:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.