Click here to Skip to main content
15,892,005 members
Home / Discussions / C#
   

C#

 
QuestionChanging an Image during runtime from resources Pin
Member 1319657416-Jun-17 5:10
Member 1319657416-Jun-17 5:10 
AnswerRe: Changing an Image during runtime from resources Pin
BillWoodruff17-Jun-17 13:12
professionalBillWoodruff17-Jun-17 13:12 
QuestionSystem.IndexOutOfRangeException Pin
joost.versteegen14-Jun-17 21:46
joost.versteegen14-Jun-17 21:46 
AnswerRe: System.IndexOutOfRangeException Pin
OriginalGriff14-Jun-17 22:19
mveOriginalGriff14-Jun-17 22:19 
GeneralRe: System.IndexOutOfRangeException Pin
joost.versteegen14-Jun-17 22:26
joost.versteegen14-Jun-17 22:26 
GeneralRe: System.IndexOutOfRangeException Pin
OriginalGriff14-Jun-17 22:38
mveOriginalGriff14-Jun-17 22:38 
GeneralRe: System.IndexOutOfRangeException Pin
joost.versteegen14-Jun-17 22:41
joost.versteegen14-Jun-17 22:41 
GeneralRe: System.IndexOutOfRangeException Pin
OriginalGriff14-Jun-17 23:01
mveOriginalGriff14-Jun-17 23:01 
Can you try enabling all exceptions?
From the menu, "Debug...Exceptions", and tick everything in the "Thrown" column. That way, even if an exception is being handled, the code should break (and the reference sources should help you locate why).

Trouble is that if I do a "minimum setup" to mimic your problem, I get no exception:
C#
public class MyObject
            {
            public string Text { get; set; }
            public int Value { get; set; }
            }
        private void button1_Click(object sender, EventArgs e)
            {
            MyObject mo = new MyObject();
            mo.Text = "hello";
            mo.Value = 666;
            myList.Add(mo);
            myDataGridView.Refresh();
            }
        private List<MyObject> myList = new List<MyObject>();
        private void MyButton_Click(object sender, EventArgs e)
            {
            myDataGridView.DataSource = null;
            myList = new List<MyObject>();
            myDataGridView.DataSource = myList;
            myDataGridView.Refresh();
So I can't get any additional info to work from.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!

GeneralRe: System.IndexOutOfRangeException Pin
joost.versteegen14-Jun-17 23:08
joost.versteegen14-Jun-17 23:08 
AnswerRe: System.IndexOutOfRangeException Pin
Richard Deeming15-Jun-17 1:39
mveRichard Deeming15-Jun-17 1:39 
GeneralRe: System.IndexOutOfRangeException Pin
joost.versteegen15-Jun-17 2:14
joost.versteegen15-Jun-17 2:14 
AnswerRe: System.IndexOutOfRangeException Pin
Gerry Schmitz16-Jun-17 5:47
mveGerry Schmitz16-Jun-17 5:47 
QuestionTCP/IP client-server Socket Programming use Video chat also in c#? Pin
prog.sidra13-Jun-17 20:03
prog.sidra13-Jun-17 20:03 
AnswerRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
Pete O'Hanlon13-Jun-17 21:25
mvePete O'Hanlon13-Jun-17 21:25 
GeneralRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
prog.sidra15-Jun-17 19:17
prog.sidra15-Jun-17 19:17 
GeneralRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
Pete O'Hanlon15-Jun-17 20:42
mvePete O'Hanlon15-Jun-17 20:42 
AnswerRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
jschell14-Jun-17 10:35
jschell14-Jun-17 10:35 
GeneralRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
prog.sidra15-Jun-17 19:19
prog.sidra15-Jun-17 19:19 
QuestionRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
Gerry Schmitz16-Jun-17 6:00
mveGerry Schmitz16-Jun-17 6:00 
AnswerRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
jschell17-Jun-17 6:01
jschell17-Jun-17 6:01 
GeneralRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
Gerry Schmitz17-Jun-17 6:15
mveGerry Schmitz17-Jun-17 6:15 
GeneralRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
prog.sidra18-Jun-17 20:18
prog.sidra18-Jun-17 20:18 
GeneralRe: TCP/IP client-server Socket Programming use Video chat also in c#? Pin
jschell23-Jun-17 11:32
jschell23-Jun-17 11:32 
QuestionHow to remove this error:cannot implicitly convert type 'webapplication1.sharepointonlinecredentials' to 'system.net.icredentials'. An explicit conversion exists (are you missing a cast? ) Pin
Prakash-2713-Jun-17 19:45
Prakash-2713-Jun-17 19:45 
QuestionRe: How to remove this error:cannot implicitly convert type 'webapplication1.sharepointonlinecredentials' to 'system.net.icredentials'. An explicit conversion exists (are you missing a cast? ) Pin
Richard MacCutchan13-Jun-17 21:36
mveRichard MacCutchan13-Jun-17 21:36 

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.