Click here to Skip to main content
12,760,996 members (27,297 online)
   

C#

 
GeneralRe: Keeps returning NullReferenceException Pin
V.21-Nov-12 4:31
memberV.21-Nov-12 4:31 
QuestionValidate XML file against rule in db Pin
rahul.net1120-Nov-12 23:29
memberrahul.net1120-Nov-12 23:29 
AnswerRe: Validate XML file against rule in db Pin
PIEBALDconsult21-Nov-12 8:07
memberPIEBALDconsult21-Nov-12 8:07 
GeneralRe: Validate XML file against rule in db Pin
rahul.net1116-Jan-13 21:01
memberrahul.net1116-Jan-13 21:01 
QuestionHow to set the distance between checkbox and text in using TreeView ? Pin
taibc20-Nov-12 23:26
membertaibc20-Nov-12 23:26 
AnswerRe: How to set the distance between checkbox and text in using TreeView ? Pin
Jay Nardev21-Nov-12 1:03
groupJay Nardev21-Nov-12 1:03 
GeneralRe: How to set the distance between checkbox and text in using TreeView ? Pin
taibc21-Nov-12 15:06
membertaibc21-Nov-12 15:06 
QuestionHow to fix Error when i using BackgroundWorker in C# Pin
sonthuy_st20-Nov-12 21:36
membersonthuy_st20-Nov-12 21:36 
this's the error when I run the program "Cross-thread operation not valid: Control 'listBox1' accessed from a thread other than the thread it was created on." WTF | :WTF:
please help me Dead | X|
this's my code, it's simple
private void button1_Click(object sender, EventArgs e)
        {
            backgroundWorker2.RunWorkerAsync();       
        }
        public void additem(int i)
        {
            listBox1.Items.Add(i);  
        }

        private void backgroundWorker2_DoWork(object sender, DoWorkEventArgs e)
        {
            for (int i = 0; i < 10; i++)
            {
                additem(i);
                Thread.Sleep(500);
            }
            
        }

AnswerRe: How to fix Error when i using BackgroundWorker in C# Pin
@AmitGajjar20-Nov-12 22:04
member@AmitGajjar20-Nov-12 22:04 
GeneralRe: How to fix Error when i using BackgroundWorker in C# Pin
sonthuy_st20-Nov-12 22:19
membersonthuy_st20-Nov-12 22:19 
GeneralRe: How to fix Error when i using BackgroundWorker in C# Pin
@AmitGajjar20-Nov-12 22:22
member@AmitGajjar20-Nov-12 22:22 
AnswerRe: How to fix Error when i using BackgroundWorker in C# Pin
sirama200420-Nov-12 23:52
membersirama200420-Nov-12 23:52 
QuestionInvokeRequired Pin
MAW3020-Nov-12 16:04
memberMAW3020-Nov-12 16:04 
AnswerRe: InvokeRequired Pin
SledgeHammer0120-Nov-12 19:02
memberSledgeHammer0120-Nov-12 19:02 
AnswerRe: InvokeRequired Pin
BMS12122-Nov-12 23:46
memberBMS12122-Nov-12 23:46 
QuestionHow to Query if a ComboBox's AutoComplete Dialog is Open Pin
Skippums20-Nov-12 15:47
memberSkippums20-Nov-12 15:47 
QuestionFull path name of .cs file Pin
TheGermoz20-Nov-12 11:35
memberTheGermoz20-Nov-12 11:35 
AnswerRe: Full path name of .cs file Pin
Garth J Lancaster20-Nov-12 12:42
memberGarth J Lancaster20-Nov-12 12:42 
AnswerRe: Full path name of .cs file Pin
jschell20-Nov-12 13:24
memberjschell20-Nov-12 13:24 
AnswerRe: Full path name of .cs file Pin
PIEBALDconsult20-Nov-12 13:56
memberPIEBALDconsult20-Nov-12 13:56 
GeneralRe: Full path name of .cs file Pin
TheGermoz20-Nov-12 18:28
memberTheGermoz20-Nov-12 18:28 
GeneralRe: Full path name of .cs file Pin
PIEBALDconsult20-Nov-12 19:06
memberPIEBALDconsult20-Nov-12 19:06 
GeneralRe: Full path name of .cs file Pin
TheGermoz20-Nov-12 19:12
memberTheGermoz20-Nov-12 19:12 
GeneralRe: Full path name of .cs file Pin
Richard MacCutchan20-Nov-12 22:34
mvpRichard MacCutchan20-Nov-12 22:34 
GeneralRe: Full path name of .cs file Pin
Pete O'Hanlon20-Nov-12 23:10
protectorPete O'Hanlon20-Nov-12 23:10 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170217.1 | Last Updated 26 Feb 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid