Click here to Skip to main content
15,912,072 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to use chrome webbrowser in C# .NET windows form application Pin
Member 116126624-May-15 16:09
Member 116126624-May-15 16:09 
QuestionHow to use "altChunk" to put HTML into a MS Word object that is embedded into a PowerPoint slide? Pin
pats2Kdynasty3-May-15 11:53
pats2Kdynasty3-May-15 11:53 
QuestionGoogle Speech Recognition Pin
Member 114365473-May-15 1:17
Member 114365473-May-15 1:17 
AnswerRe: Google Speech Recognition Pin
Richard MacCutchan3-May-15 2:14
mveRichard MacCutchan3-May-15 2:14 
GeneralRe: Google Speech Recognition Pin
Member 114365473-May-15 2:17
Member 114365473-May-15 2:17 
GeneralRe: Google Speech Recognition Pin
Richard MacCutchan3-May-15 2:24
mveRichard MacCutchan3-May-15 2:24 
GeneralRe: Google Speech Recognition Pin
Member 114365473-May-15 2:27
Member 114365473-May-15 2:27 
GeneralRe: Google Speech Recognition Pin
Sascha Lefèvre3-May-15 3:00
professionalSascha Lefèvre3-May-15 3:00 
GeneralRe: Google Speech Recognition Pin
Member 114365473-May-15 3:30
Member 114365473-May-15 3:30 
GeneralRe: Google Speech Recognition Pin
OriginalGriff3-May-15 3:53
mveOriginalGriff3-May-15 3:53 
GeneralRe: Google Speech Recognition Pin
Member 114365473-May-15 4:06
Member 114365473-May-15 4:06 
GeneralRe: Google Speech Recognition Pin
OriginalGriff3-May-15 4:17
mveOriginalGriff3-May-15 4:17 
GeneralRe: Google Speech Recognition Pin
Member 114365473-May-15 4:29
Member 114365473-May-15 4:29 
GeneralRe: Google Speech Recognition Pin
OriginalGriff3-May-15 4:46
mveOriginalGriff3-May-15 4:46 
GeneralRe: Google Speech Recognition Pin
Gerry Schmitz3-May-15 10:45
mveGerry Schmitz3-May-15 10:45 
Questioncode dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString() doesnt work Pin
aahamdan2-May-15 6:24
aahamdan2-May-15 6:24 
AnswerRe: code dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString() doesnt work Pin
OriginalGriff2-May-15 6:39
mveOriginalGriff2-May-15 6:39 
GeneralRe: code dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString() doesnt work Pin
aahamdan2-May-15 6:48
aahamdan2-May-15 6:48 
Thank you Sir,
I have tried your code, but I get the same error.
Below is the exception message I received.

The code works under Button_Cleck event.
System.NullReferenceException was unhandled
  Message=Object reference not set to an instance of an object.
  Source=ERP
  StackTrace:
       at ERP.frmCalendar.dataGridView1_CellLeave(Object sender, DataGridViewCellEventArgs e) in C:\Projects\ERP\ERP\GL\frmCalendar.cs:line 103
       at System.Windows.Forms.DataGridView.OnCellLeave(DataGridViewCellEventArgs e)
       at System.Windows.Forms.DataGridView.OnCellLeave(DataGridViewCell& dataGridViewCell, Int32 columnIndex, Int32 rowIndex)
       at System.Windows.Forms.DataGridView.CommitEdit(DataGridViewCell& dataGridViewCurrentCell, DataGridViewDataErrorContexts context, DataGridViewValidateCellInternal validateCell, Boolean fireCellLeave, Boolean fireCellEnter, Boolean fireRowLeave, Boolean fireRowEnter, Boolean fireLeave)
       at System.Windows.Forms.DataGridView.EndEdit(DataGridViewDataErrorContexts context, DataGridViewValidateCellInternal validateCell, Boolean fireCellLeave, Boolean fireCellEnter, Boolean fireRowLeave, Boolean fireRowEnter, Boolean fireLeave, Boolean keepFocus, Boolean resetCurrentCell, Boolean resetAnchorCell)
       at System.Windows.Forms.DataGridView.CommitEditForOperation(Int32 columnIndex, Int32 rowIndex, Boolean forCurrentCellChange)
       at System.Windows.Forms.DataGridView.ScrollIntoView(Int32 columnIndex, Int32 rowIndex, Boolean forCurrentCellChange)
       at System.Windows.Forms.DataGridView.TabToNextCell()
       at System.Windows.Forms.DataGridView.ProcessTabKey(Keys keyData)
       at System.Windows.Forms.DataGridView.ProcessDialogKey(Keys keyData)
       at System.Windows.Forms.Control.ProcessDialogKey(Keys keyData)
       at System.Windows.Forms.TextBoxBase.ProcessDialogKey(Keys keyData)
       at System.Windows.Forms.Control.PreProcessMessage(Message& msg)
       at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)
       at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)
       at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at ERP.frmLogin.runAppl() in C:\Projects\ERP\ERP\frmLogin.cs:line 103
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

GeneralRe: code dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString() doesnt work Pin
OriginalGriff2-May-15 7:18
mveOriginalGriff2-May-15 7:18 
AnswerRe: code dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString() doesnt work Pin
Henrik Jonsson2-May-15 7:05
Henrik Jonsson2-May-15 7:05 
AnswerRe: code dataGridView1[e.ColumnIndex, e.RowIndex].Value.ToString() doesnt work Pin
V.4-May-15 22:58
professionalV.4-May-15 22:58 
QuestionHow can I write string to a memory mapped file? Pin
Member 116587422-May-15 0:52
Member 116587422-May-15 0:52 
QuestionRe: How can I write string to a memory mapped file? Pin
Richard MacCutchan2-May-15 3:33
mveRichard MacCutchan2-May-15 3:33 
AnswerRe: How can I write string to a memory mapped file? Pin
Member 116587422-May-15 4:17
Member 116587422-May-15 4:17 
GeneralRe: How can I write string to a memory mapped file? Pin
Richard MacCutchan2-May-15 4:23
mveRichard MacCutchan2-May-15 4:23 

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.