Click here to Skip to main content
15,925,602 members
Home / Discussions / C#
   

C#

 
GeneralRe: control draw to graphics surface Pin
Daniel Turini14-Dec-04 20:22
Daniel Turini14-Dec-04 20:22 
Questionmultiline textbox to MSDE ntext field ? Pin
fracalifa14-Dec-04 10:18
fracalifa14-Dec-04 10:18 
AnswerRe: multiline textbox to MSDE ntext field ? Pin
Dave Kreskowiak14-Dec-04 10:38
mveDave Kreskowiak14-Dec-04 10:38 
GeneralRe: multiline textbox to MSDE ntext field ? Pin
fracalifa14-Dec-04 11:10
fracalifa14-Dec-04 11:10 
GeneralRe: multiline textbox to MSDE ntext field ? Pin
Dave Kreskowiak15-Dec-04 12:13
mveDave Kreskowiak15-Dec-04 12:13 
GeneralCatching Textbox changes on a form Pin
Peter Vertes14-Dec-04 9:04
Peter Vertes14-Dec-04 9:04 
GeneralRe: Catching Textbox changes on a form Pin
SeMartens14-Dec-04 9:32
SeMartens14-Dec-04 9:32 
GeneralRe: Catching Textbox changes on a form Pin
Jay Shankar14-Dec-04 13:45
Jay Shankar14-Dec-04 13:45 
To add the posting of Mr. SeMartens. If you want to do some specific task in the keyPress event of a perticular textBox, You can easily do the same. Below example illustrate the same.

//add the event handler to the textBoxes, 
this.textBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxesKeyPress);

this.textBox2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxesKeyPress);

this.textBox3.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxesKeyPress);

this.textBox4.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxesKeyPress);

//
//

private void TextBoxesKeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) 
{
	// do the common processing here i.e. applicable to all the textBoxes
	//.........................
	//
	//processing for specific textBox
	//
	if(sender == this.textBox1)
	{
		//do processing relevent to textBox1 only
		//.......................
	}
	else if(sender == this.textBox2)
	{
		//do processing relevent to textBox1 only
		//............................
	}
	else if(sender == this.textBox3)
	{
			//do processing relevent to textBox3 only
			//............................
	}
	else if(sender == this.textBox4)
	{
		//do processing relevent to textBox4 only
		//............................
	}
	

}


Do revert back whether it could solve your purpose or not
GeneralC# Change XML Element content Pin
marker2714-Dec-04 8:24
sussmarker2714-Dec-04 8:24 
GeneralRe: C# Change XML Element content Pin
DavidNohejl14-Dec-04 10:49
DavidNohejl14-Dec-04 10:49 
GeneralRe: C# Change XML Element content Pin
Daniel Turini14-Dec-04 20:17
Daniel Turini14-Dec-04 20:17 
Generalfile processing time Pin
shaw12314-Dec-04 8:20
shaw12314-Dec-04 8:20 
GeneralRe: file processing time Pin
Dave Kreskowiak14-Dec-04 10:35
mveDave Kreskowiak14-Dec-04 10:35 
GeneralRe: file processing time Pin
Anonymous14-Dec-04 10:42
Anonymous14-Dec-04 10:42 
GeneralCalling functions Pin
thepersonof14-Dec-04 7:33
thepersonof14-Dec-04 7:33 
GeneralRe: Calling functions Pin
Nick Parker14-Dec-04 15:40
protectorNick Parker14-Dec-04 15:40 
GeneralRe: Calling functions Pin
thepersonof15-Dec-04 10:04
thepersonof15-Dec-04 10:04 
GeneralListView problem Pin
Sebastien Lachance14-Dec-04 7:23
Sebastien Lachance14-Dec-04 7:23 
GeneralRe: ListView problem Pin
Hugo Migneron14-Dec-04 8:07
Hugo Migneron14-Dec-04 8:07 
GeneralRe: ListView problem Pin
Sebastien Lachance14-Dec-04 8:11
Sebastien Lachance14-Dec-04 8:11 
GeneralRe: ListView problem Pin
Hugo Migneron14-Dec-04 8:19
Hugo Migneron14-Dec-04 8:19 
GeneralRe: ListView problem Pin
Sebastien Lachance14-Dec-04 8:34
Sebastien Lachance14-Dec-04 8:34 
GeneralRe: ListView problem Pin
Hugo Migneron14-Dec-04 8:41
Hugo Migneron14-Dec-04 8:41 
GeneralRe: ListView problem Pin
Sebastien Lachance14-Dec-04 8:51
Sebastien Lachance14-Dec-04 8:51 
GeneralTraversing Sub Dirs Pin
Anonymous14-Dec-04 6:51
Anonymous14-Dec-04 6:51 

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.