Click here to Skip to main content
15,906,567 members
Home / Discussions / C#
   

C#

 
GeneralRe: What's wrong with this code? Pin
Rob Philpott3-Feb-09 7:24
Rob Philpott3-Feb-09 7:24 
GeneralRe: What's wrong with this code? Pin
Juvil John3-Feb-09 7:38
Juvil John3-Feb-09 7:38 
GeneralRe: What's wrong with this code? Pin
Juvil John3-Feb-09 7:41
Juvil John3-Feb-09 7:41 
AnswerRe: What's wrong with this code? Pin
Wendelius3-Feb-09 8:15
mentorWendelius3-Feb-09 8:15 
GeneralRe: What's wrong with this code? Pin
Jon Rista3-Feb-09 10:36
Jon Rista3-Feb-09 10:36 
GeneralRe: What's wrong with this code? Pin
Wendelius3-Feb-09 11:05
mentorWendelius3-Feb-09 11:05 
AnswerRe: What's wrong with this code? Pin
martin_hughes3-Feb-09 8:41
martin_hughes3-Feb-09 8:41 
GeneralRe: What's wrong with this code? Pin
Juvil John3-Feb-09 8:50
Juvil John3-Feb-09 8:50 
I have not actually found out whats really causing this but I re design my code and somehow got this to work.

here's what i'm using now.

private delegate void _Post_Result(object data);

       private void Post_Result(object data)
       {
           if (lvThreads.InvokeRequired)
           {
               //This means that calling was accessed in separate thread
               upd = new _Post_Result(Post_Result);
               this.lvThreads.Invoke(upd, new object[] { data });
           }
           else
           {
               //This means that calling of lvThreads is in main thread
               lvitem = (ListViewItem)data;
               this.lvThreads.Items[lvitem.Index].SubItems[1].Text =
                   Convert.ToString(Convert.ToInt32(lvitem.SubItems[1].Text) + 1);
           }
       }

Questionhelp Pin
Member 46759863-Feb-09 6:54
Member 46759863-Feb-09 6:54 
AnswerRe: help Pin
EliottA3-Feb-09 6:56
EliottA3-Feb-09 6:56 
AnswerRe: help Pin
musefan3-Feb-09 6:59
musefan3-Feb-09 6:59 
GeneralRe: help Pin
EliottA3-Feb-09 7:04
EliottA3-Feb-09 7:04 
GeneralRe: help Pin
musefan3-Feb-09 7:06
musefan3-Feb-09 7:06 
GeneralRe: help Pin
Rob Philpott3-Feb-09 7:30
Rob Philpott3-Feb-09 7:30 
AnswerRe: help Pin
0x3c03-Feb-09 9:10
0x3c03-Feb-09 9:10 
Questionadding chars Pin
humayunlalzad3-Feb-09 6:45
humayunlalzad3-Feb-09 6:45 
AnswerRe: adding chars Pin
musefan3-Feb-09 6:53
musefan3-Feb-09 6:53 
GeneralRe: adding chars Pin
EliottA3-Feb-09 6:54
EliottA3-Feb-09 6:54 
AnswerRe: adding chars Pin
Wendelius3-Feb-09 8:36
mentorWendelius3-Feb-09 8:36 
GeneralRe: adding chars Pin
humayunlalzad4-Feb-09 4:43
humayunlalzad4-Feb-09 4:43 
GeneralRe: adding chars Pin
Wendelius4-Feb-09 7:59
mentorWendelius4-Feb-09 7:59 
QuestionNoob question, probably easy answer... Pin
Lodeclaw3-Feb-09 6:14
Lodeclaw3-Feb-09 6:14 
AnswerRe: Noob question, probably easy answer... Pin
EliottA3-Feb-09 6:15
EliottA3-Feb-09 6:15 
GeneralRe: Noob question, probably easy answer... Pin
Lodeclaw3-Feb-09 6:16
Lodeclaw3-Feb-09 6:16 
GeneralRe: Noob question, probably easy answer... Pin
EliottA3-Feb-09 6:20
EliottA3-Feb-09 6:20 

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.