Click here to Skip to main content
15,896,493 members
Home / Discussions / C#
   

C#

 
GeneralRe: Anybody familiar with compression? (Using it I mean) Pin
harold aptroot8-Feb-12 10:13
harold aptroot8-Feb-12 10:13 
GeneralRe: Anybody familiar with compression? (Using it I mean) Pin
SledgeHammer018-Feb-12 11:52
SledgeHammer018-Feb-12 11:52 
AnswerRe: Anybody familiar with compression? (Using it I mean) Pin
Luc Pattyn8-Feb-12 12:12
sitebuilderLuc Pattyn8-Feb-12 12:12 
GeneralRe: Anybody familiar with compression? (Using it I mean) Pin
SledgeHammer018-Feb-12 13:08
SledgeHammer018-Feb-12 13:08 
GeneralRe: Anybody familiar with compression? (Using it I mean) Pin
SledgeHammer018-Feb-12 13:56
SledgeHammer018-Feb-12 13:56 
AnswerRe: Anybody familiar with compression? (Using it I mean) Pin
Luc Pattyn9-Feb-12 4:33
sitebuilderLuc Pattyn9-Feb-12 4:33 
AnswerRe: Anybody familiar with compression? (Using it I mean) Pin
Luc Pattyn8-Feb-12 10:39
sitebuilderLuc Pattyn8-Feb-12 10:39 
QuestionUsing Controls in multiple threads Pin
Danzy838-Feb-12 7:47
Danzy838-Feb-12 7:47 
Hello everyone, I am using a ListView control in two threads. The second thread which did not create the control adds items to the ListView control. When I call the Add() function to add the item, it appears the function does not return, looking as if the function has entered into a loop. I changed the code to invoke a function through a delegate as below:

ListViewItem listItem = new ListViewItem("mathematics");


if (lvSubjects.InokeRequired)
{
    AddSubjectDelegate addSubject = new AddSubject(AddListItem);

    addSubject.AddListItem(addSubject, new ListViewItem[] {listItem});
}


'lvSubjects' is an object of ListView control. I have not typed all the code here but the object 'AddSubjectDelegate' is a delegate and 'AddListItem' is a function in the class. After implementing the code this way too, the same problem occurs. When the 'AddListItem' function is callled, a call to ListView.Items.Add() does not return.

Any solution around this please. Thanks in advance.
AnswerRe: Using Controls in multiple threads Pin
Luc Pattyn8-Feb-12 8:21
sitebuilderLuc Pattyn8-Feb-12 8:21 
AnswerRe: Using Controls in multiple threads Pin
DaveyM698-Feb-12 8:43
professionalDaveyM698-Feb-12 8:43 
QuestionThe type or namespace name 'Excel' could not be found Pin
pmcm8-Feb-12 5:17
pmcm8-Feb-12 5:17 
AnswerRe: The type or namespace name 'Excel' could not be found Pin
Wes Aday8-Feb-12 5:24
professionalWes Aday8-Feb-12 5:24 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
pmcm8-Feb-12 5:31
pmcm8-Feb-12 5:31 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
Richard MacCutchan8-Feb-12 6:25
mveRichard MacCutchan8-Feb-12 6:25 
AnswerRe: The type or namespace name 'Excel' could not be found Pin
Eddy Vluggen8-Feb-12 9:12
professionalEddy Vluggen8-Feb-12 9:12 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
Richard MacCutchan8-Feb-12 21:41
mveRichard MacCutchan8-Feb-12 21:41 
AnswerRe: The type or namespace name 'Excel' could not be found Pin
Eddy Vluggen9-Feb-12 0:17
professionalEddy Vluggen9-Feb-12 0:17 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
Richard MacCutchan9-Feb-12 0:58
mveRichard MacCutchan9-Feb-12 0:58 
AnswerRe: The type or namespace name 'Excel' could not be found Pin
Eddy Vluggen9-Feb-12 4:59
professionalEddy Vluggen9-Feb-12 4:59 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
Richard MacCutchan9-Feb-12 6:21
mveRichard MacCutchan9-Feb-12 6:21 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
Eddy Vluggen9-Feb-12 6:45
professionalEddy Vluggen9-Feb-12 6:45 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
Richard MacCutchan9-Feb-12 6:52
mveRichard MacCutchan9-Feb-12 6:52 
AnswerRe: The type or namespace name 'Excel' could not be found Pin
Luc Pattyn8-Feb-12 6:42
sitebuilderLuc Pattyn8-Feb-12 6:42 
AnswerRe: The type or namespace name 'Excel' could not be found Pin
Dinesh928-Feb-12 20:31
professionalDinesh928-Feb-12 20:31 
GeneralRe: The type or namespace name 'Excel' could not be found Pin
pmcm8-Feb-12 21:46
pmcm8-Feb-12 21:46 

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.