Click here to Skip to main content
15,888,330 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: How can I write string to a memory mapped file? Pin
Member 116587422-May-15 4:34
Member 116587422-May-15 4:34 
GeneralRe: How can I write string to a memory mapped file? Pin
Richard MacCutchan2-May-15 4:56
mveRichard MacCutchan2-May-15 4:56 
GeneralRe: How can I write string to a memory mapped file? Pin
Member 116587422-May-15 5:19
Member 116587422-May-15 5:19 
GeneralRe: How can I write string to a memory mapped file? Pin
Richard MacCutchan2-May-15 5:28
mveRichard MacCutchan2-May-15 5:28 
GeneralRe: How can I write string to a memory mapped file? Pin
OriginalGriff2-May-15 4:30
mveOriginalGriff2-May-15 4:30 
GeneralRe: How can I write string to a memory mapped file? Pin
Member 116587422-May-15 4:40
Member 116587422-May-15 4:40 
GeneralRe: How can I write string to a memory mapped file? Pin
OriginalGriff2-May-15 4:54
mveOriginalGriff2-May-15 4:54 
GeneralRe: How can I write string to a memory mapped file? Pin
Member 116587422-May-15 5:11
Member 116587422-May-15 5:11 
AnswerRe: How can I write string to a memory mapped file? Pin
Sascha Lefèvre2-May-15 5:25
professionalSascha Lefèvre2-May-15 5:25 
QuestionHelp me, I need a simple program examples. Pin
Member 114460801-May-15 20:55
Member 114460801-May-15 20:55 

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.