Click here to Skip to main content
15,886,137 members
Home / Discussions / C#
   

C#

 
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 
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 
Hi,

when you get "Object reference not set to an instance of an object" exceptions some of the properties you invoke have returned null, in this case most likely Value for an empty grid cell. Check the Value for null before using it:
C#
var gridValue = dataGridView1[e.ColumnIndex, e.RowIndex].Value;
if( gridValue != null )
{
    string gridStringValue = gridValue.ToString();
...
}

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 
AnswerRe: Help me, I need a simple program examples. Pin
OriginalGriff1-May-15 21:16
mveOriginalGriff1-May-15 21:16 
QuestionProblem in killing both Application.exe and launched process Extract.exe from Application.exe in multiple instances environment Pin
shivmymail1-May-15 19:02
shivmymail1-May-15 19:02 

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.