Click here to Skip to main content
15,891,689 members
Home / Discussions / C#
   

C#

 
QuestionHow to connect MySQL to dataGridView Pin
Member 122785423-Mar-16 19:48
Member 122785423-Mar-16 19:48 
AnswerRe: How to connect MySQL to dataGridView Pin
Mycroft Holmes3-Mar-16 20:34
professionalMycroft Holmes3-Mar-16 20:34 
AnswerRe: How to connect MySQL to dataGridView Pin
V.3-Mar-16 22:53
professionalV.3-Mar-16 22:53 
AnswerRe: How to connect MySQL to dataGridView Pin
Frank Kerrigan4-Mar-16 3:50
Frank Kerrigan4-Mar-16 3:50 
Questionscalar data visualization Pin
Member 123014432-Mar-16 23:12
Member 123014432-Mar-16 23:12 
AnswerRe: scalar data visualization Pin
OriginalGriff2-Mar-16 23:24
mveOriginalGriff2-Mar-16 23:24 
GeneralRe: scalar data visualization Pin
Member 123014433-Mar-16 17:49
Member 123014433-Mar-16 17:49 
AnswerRe: scalar data visualization Pin
dan!sh 3-Mar-16 18:01
professional dan!sh 3-Mar-16 18:01 
That's too much code to go through. You should have only shared relevant code and marked the line where the error is.

Looking at the message, you are trying to read a character at some location in the string. The location index is larger than string length. Following demonstrates what you are doing, somewhere in your code:
C#
string hello = "hello"; // This is a string with 5 characters and hence length = 5. Since index is zero based, maximum you can look for is hello[4].
char someCharacter = hello[10]; // You are trying to read 11th character which obviously does not exist and hence will throw exception
"You'd have to be a floating database guru clad in a white toga and ghandi level of sereneness to fix this goddamn clusterfuck.", BruceN[^]

GeneralRe: scalar data visualization Pin
Pete O'Hanlon3-Mar-16 23:41
mvePete O'Hanlon3-Mar-16 23:41 
GeneralRe: scalar data visualization Pin
Sascha Lefèvre3-Mar-16 0:55
professionalSascha Lefèvre3-Mar-16 0:55 
GeneralRe: scalar data visualization Pin
Mycroft Holmes3-Mar-16 19:22
professionalMycroft Holmes3-Mar-16 19:22 
GeneralRe: scalar data visualization Pin
Sascha Lefèvre3-Mar-16 23:23
professionalSascha Lefèvre3-Mar-16 23:23 
GeneralRe: scalar data visualization Pin
OriginalGriff3-Mar-16 23:30
mveOriginalGriff3-Mar-16 23:30 
QuestionC++ DLL within C# application Pin
my Nick2-Mar-16 10:03
my Nick2-Mar-16 10:03 
AnswerRe: C++ DLL within C# application Pin
Eddy Vluggen2-Mar-16 10:37
professionalEddy Vluggen2-Mar-16 10:37 
GeneralRe: C++ DLL within C# application Pin
my Nick2-Mar-16 11:01
my Nick2-Mar-16 11:01 
GeneralRe: C++ DLL within C# application Pin
John Torjo2-Mar-16 11:37
professionalJohn Torjo2-Mar-16 11:37 
GeneralRe: C++ DLL within C# application Pin
Mycroft Holmes2-Mar-16 11:57
professionalMycroft Holmes2-Mar-16 11:57 
AnswerRe: C++ DLL within C# application Pin
my Nick2-Mar-16 22:28
my Nick2-Mar-16 22:28 
GeneralRe: C++ DLL within C# application Pin
Richard MacCutchan2-Mar-16 22:48
mveRichard MacCutchan2-Mar-16 22:48 
AnswerRe: C++ DLL within C# application Pin
John Torjo2-Mar-16 22:52
professionalJohn Torjo2-Mar-16 22:52 
GeneralRe: C++ DLL within C# application Pin
my Nick2-Mar-16 23:07
my Nick2-Mar-16 23:07 
QuestionHow To? Abstract base class with Generic Constraints that also implements other interfaces Pin
Foothill2-Mar-16 8:46
professionalFoothill2-Mar-16 8:46 
AnswerRe: How To? Abstract base class with Generic Constraints that also implements other interfaces Pin
Sascha Lefèvre2-Mar-16 9:14
professionalSascha Lefèvre2-Mar-16 9:14 
GeneralRe: How To? Abstract base class with Generic Constraints that also implements other interfaces Pin
Foothill2-Mar-16 9:22
professionalFoothill2-Mar-16 9:22 

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.