Click here to Skip to main content
15,913,939 members
Home / Discussions / C#
   

C#

 
Questionhtmleditor Pin
munmat12-Nov-05 13:09
munmat12-Nov-05 13:09 
QuestionClose Child Form Pin
Tyler4512-Nov-05 10:40
Tyler4512-Nov-05 10:40 
AnswerRe: Close Child Form Pin
Colin Angus Mackay12-Nov-05 11:37
Colin Angus Mackay12-Nov-05 11:37 
AnswerRe: Close Child Form Pin
da vinci coder12-Nov-05 15:45
da vinci coder12-Nov-05 15:45 
GeneralRe: Close Child Form Pin
Tyler4513-Nov-05 18:25
Tyler4513-Nov-05 18:25 
QuestionInternet Explorer frames errors Pin
David Bicknell12-Nov-05 10:15
David Bicknell12-Nov-05 10:15 
Questionproblem to set AllowDrop from callback Pin
xjsun12-Nov-05 10:03
xjsun12-Nov-05 10:03 
AnswerRe: problem to set AllowDrop from callback Pin
Leslie Sanford12-Nov-05 10:23
Leslie Sanford12-Nov-05 10:23 
button1_Click(object sender, System.EventArgs e)
{
    ipcEventHandler.BeginInvoke(null, null);
}


This invokes the delegate on a different thread. When the delegate is invoked and it attempts to change the ListView's AllowDrop property, it is doing so from a different thread than the one the ListView is running on. That's a no-no. You're only suppose to modify controls on the thread in which they are running.

Is there a reason to use a callback here? Why not do it the way you have in the button2_Click event handler?
GeneralRe: problem to set AllowDrop from callback Pin
xjsun12-Nov-05 11:39
xjsun12-Nov-05 11:39 
GeneralRe: problem to set AllowDrop from callback Pin
Leslie Sanford12-Nov-05 12:32
Leslie Sanford12-Nov-05 12:32 
GeneralRe: problem to set AllowDrop from callback Pin
S. Senthil Kumar13-Nov-05 4:42
S. Senthil Kumar13-Nov-05 4:42 
GeneralRe: problem to set AllowDrop from callback Pin
xjsun13-Nov-05 7:30
xjsun13-Nov-05 7:30 
GeneralRe: problem to set AllowDrop from callback Pin
Leslie Sanford13-Nov-05 9:24
Leslie Sanford13-Nov-05 9:24 
GeneralRe: problem to set AllowDrop from callback Pin
xjsun13-Nov-05 19:45
xjsun13-Nov-05 19:45 
QuestionWhy the output is like this ? Pin
Kamrul Hasan12-Nov-05 9:14
Kamrul Hasan12-Nov-05 9:14 
AnswerRe: Why the output is like this ? Pin
Joshua Quick12-Nov-05 10:04
Joshua Quick12-Nov-05 10:04 
GeneralRe: Why the output is like this ? Pin
Kamrul Hasan12-Nov-05 22:33
Kamrul Hasan12-Nov-05 22:33 
GeneralRe: Why the output is like this ? Pin
Joshua Quick12-Nov-05 23:00
Joshua Quick12-Nov-05 23:00 
GeneralRe: Why the output is like this ? Pin
S. Senthil Kumar13-Nov-05 4:55
S. Senthil Kumar13-Nov-05 4:55 
GeneralRe: Why the output is like this ? Pin
Joshua Quick13-Nov-05 10:02
Joshua Quick13-Nov-05 10:02 
QuestionGrouping Radio Buttons Pin
Kamrul Hasan12-Nov-05 8:33
Kamrul Hasan12-Nov-05 8:33 
AnswerRe: Grouping Radio Buttons Pin
Joshua Quick12-Nov-05 10:09
Joshua Quick12-Nov-05 10:09 
AnswerRe: Grouping Radio Buttons Pin
da vinci coder13-Nov-05 12:03
da vinci coder13-Nov-05 12:03 
QuestionReadOnly Radio Button? Pin
rich_wenger12-Nov-05 8:25
rich_wenger12-Nov-05 8:25 
AnswerRe: ReadOnly Radio Button? Pin
Colin Angus Mackay12-Nov-05 8:28
Colin Angus Mackay12-Nov-05 8:28 

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.