Click here to Skip to main content
       

C#

 
GeneralRe: Keeps returning NullReferenceException PinmemberV.21-Nov-12 3:31 
QuestionValidate XML file against rule in db Pinmemberrahul.net1120-Nov-12 22:29 
AnswerRe: Validate XML file against rule in db PinmemberPIEBALDconsult21-Nov-12 7:07 
GeneralRe: Validate XML file against rule in db Pinmemberrahul.net1116-Jan-13 20:01 
QuestionHow to set the distance between checkbox and text in using TreeView ? Pinmembertaibc20-Nov-12 22:26 
AnswerRe: How to set the distance between checkbox and text in using TreeView ? PingroupJay Nardev21-Nov-12 0:03 
GeneralRe: How to set the distance between checkbox and text in using TreeView ? Pinmembertaibc21-Nov-12 14:06 
QuestionHow to fix Error when i using BackgroundWorker in C# Pinmembersonthuy_st20-Nov-12 20: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# Pinmember@AmitGajjar20-Nov-12 21:04 
GeneralRe: How to fix Error when i using BackgroundWorker in C# Pinmembersonthuy_st20-Nov-12 21:19 
GeneralRe: How to fix Error when i using BackgroundWorker in C# Pinmember@AmitGajjar20-Nov-12 21:22 
AnswerRe: How to fix Error when i using BackgroundWorker in C# Pinmembersirama200420-Nov-12 22:52 
QuestionInvokeRequired [modified] PinmemberMAW3020-Nov-12 15:04 
AnswerRe: InvokeRequired [modified] PinmemberSledgeHammer0120-Nov-12 18:02 
AnswerRe: InvokeRequired PinmemberBMS12122-Nov-12 22:46 
QuestionHow to Query if a ComboBox's AutoComplete Dialog is Open PinmemberSkippums20-Nov-12 14:47 
QuestionFull path name of .cs file [modified] PinmemberTheGermoz20-Nov-12 10:35 
AnswerRe: Full path name of .cs file PinmemberGarth J Lancaster20-Nov-12 11:42 
AnswerRe: Full path name of .cs file Pinmemberjschell20-Nov-12 12:24 
AnswerRe: Full path name of .cs file PinmemberPIEBALDconsult20-Nov-12 12:56 
GeneralRe: Full path name of .cs file PinmemberTheGermoz20-Nov-12 17:28 
GeneralRe: Full path name of .cs file PinmemberPIEBALDconsult20-Nov-12 18:06 
GeneralRe: Full path name of .cs file PinmemberTheGermoz20-Nov-12 18:12 
GeneralRe: Full path name of .cs file PinmvpRichard MacCutchan20-Nov-12 21:34 
GeneralRe: Full path name of .cs file PinprotectorPete O'Hanlon20-Nov-12 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.140827.1 | Last Updated 31 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid