Click here to Skip to main content
15,895,142 members
Home / Discussions / C#
   

C#

 
GeneralRe: WinForms: programatically created control will not paint Pin
SebbaP6-Aug-05 4:12
SebbaP6-Aug-05 4:12 
GeneralRe: WinForms: programatically created control will not paint Pin
Rob Graham4-Aug-05 11:44
Rob Graham4-Aug-05 11:44 
QuestionImage recognition in .NET ? Pin
gicio4-Aug-05 9:11
gicio4-Aug-05 9:11 
AnswerRe: Image recognition in .NET ? Pin
Judah Gabriel Himango4-Aug-05 9:26
sponsorJudah Gabriel Himango4-Aug-05 9:26 
AnswerRe: Image recognition in .NET ? Pin
Andrew Kirillov4-Aug-05 9:32
Andrew Kirillov4-Aug-05 9:32 
GeneralRe: Image recognition in .NET ? Pin
Judah Gabriel Himango4-Aug-05 12:10
sponsorJudah Gabriel Himango4-Aug-05 12:10 
Generaladd bullets in MS Word with c# Pin
helenaz4-Aug-05 9:06
helenaz4-Aug-05 9:06 
GeneralCurrentCell - Tab Please Help Pin
zaboboa4-Aug-05 8:55
zaboboa4-Aug-05 8:55 
Hello,

I have DataGrid with the event defenition:

foreach( DataGridTextBoxColumn dataGridTextBoxColumn in this.styleStages.GridColumnStyles ) {<br />
				dataGridTextBoxColumn.TextBox.Leave += new EventHandler(this.GridTextBoxLeave);<br />
				dataGridTextBoxColumn.TextBox.Enter += new EventHandler(this.GridTextBoxEnter);<br />
				<br />
				<br />
				<br />
			}


In the Leave event I grab the current cell:

private void GridTextBoxLeave (object sender, System.EventArgs e)<br />
		{<br />
		    DataGridTextBox dtb = (DataGridTextBox) sender;<br />
			DataGridCell cell = this.dataGridStages.CurrentCell;<br />
			int r = cell.RowNumber;<br />
			int c = cell.ColumnNumber;<br />
			int rowCount = this.getRowCount();<br />
			<br />
			this.dataGridStages.EndEdit(this.dataGridStages.TableStyles["Stages"].GridColumnStyles[c], r, false);<br />
			Debug.WriteLine("Leave: "+r+" - "+c);}


So, if I click away the current cell is the cell that I just LEFT (which is good), however, if I use TAB key to move to the next cell, the current cell will be the one I just moved to.

How can I make TAB key press to act the same as the TextBox.Leave event?

Thank you
GeneralLockBits and 8bpp color table Pin
s2l4-Aug-05 8:32
s2l4-Aug-05 8:32 
GeneralTreeView events are lose when a TreeNode in any level is deleted Pin
Daniel MATHESIS MX4-Aug-05 8:06
sussDaniel MATHESIS MX4-Aug-05 8:06 
GeneralForcing an event Pin
zaboboa4-Aug-05 7:35
zaboboa4-Aug-05 7:35 
GeneralRe: Forcing an event Pin
Turtle Hand4-Aug-05 9:18
Turtle Hand4-Aug-05 9:18 
General.NET Audio Library Pin
James Spibey4-Aug-05 7:08
James Spibey4-Aug-05 7:08 
GeneralError when read a related deleted row Pin
Ming Luo4-Aug-05 6:50
Ming Luo4-Aug-05 6:50 
GeneralError in relational database. Please Help! Pin
Ming Luo4-Aug-05 6:43
Ming Luo4-Aug-05 6:43 
Generalobject reference problem Pin
ppp0014-Aug-05 6:17
ppp0014-Aug-05 6:17 
GeneralRe: object reference problem Pin
Guffa4-Aug-05 8:47
Guffa4-Aug-05 8:47 
Generalram memory pocket pc Pin
Anonymous4-Aug-05 6:14
Anonymous4-Aug-05 6:14 
General.NET Logging Framework (database) Pin
pankazmittal4-Aug-05 6:13
pankazmittal4-Aug-05 6:13 
GeneralRe: .NET Logging Framework (database) Pin
Dave Kreskowiak4-Aug-05 6:28
mveDave Kreskowiak4-Aug-05 6:28 
GeneralRe: .NET Logging Framework (database) Pin
Steve Maier4-Aug-05 6:42
professionalSteve Maier4-Aug-05 6:42 
GeneralMatch percentage between two string Pin
Member 17237104-Aug-05 5:50
Member 17237104-Aug-05 5:50 
GeneralRe: Match percentage between two string Pin
Dave Kreskowiak4-Aug-05 6:24
mveDave Kreskowiak4-Aug-05 6:24 
GeneralRe: Match percentage between two string Pin
Patric_J5-Aug-05 5:23
Patric_J5-Aug-05 5:23 
GeneralMDI Form Toggling Using Custom Buttons Pin
lpointer4-Aug-05 5:06
lpointer4-Aug-05 5:06 

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.