Click here to Skip to main content
15,917,560 members
Home / Discussions / C#
   

C#

 
AnswerRe: Casting a WebService instance to a custom interface Pin
led mike12-Oct-07 6:59
led mike12-Oct-07 6:59 
GeneralRe: Casting a WebService instance to a custom interface Pin
MrEyes12-Oct-07 8:23
MrEyes12-Oct-07 8:23 
GeneralRe: Casting a WebService instance to a custom interface Pin
led mike12-Oct-07 9:54
led mike12-Oct-07 9:54 
QuestionCan't Break point ASP Project Pin
smarttom9912-Oct-07 5:09
smarttom9912-Oct-07 5:09 
AnswerRe: Can't Break point ASP Project Pin
martin_hughes12-Oct-07 5:21
martin_hughes12-Oct-07 5:21 
GeneralRe: Can't Break point ASP Project Pin
smarttom9913-Oct-07 4:29
smarttom9913-Oct-07 4:29 
GeneralRe: Can't Break point ASP Project Pin
martin_hughes13-Oct-07 6:03
martin_hughes13-Oct-07 6:03 
QuestionModal Dialogs Pin
Skippums12-Oct-07 5:05
Skippums12-Oct-07 5:05 
I would like to display a custom message box form as a modal dialog by calling Form.ShowDialog(this). However, I would like to make this call from a separate thread in my main class. Currently when I do this, upon exiting the second form (which is displayed correctly), my entire application locks up. I have put some sample code below which illustrates the problem...

public class MainForm : Form {
...
private void Button1_Click(object sender, EventArgs e) {
new Thread(new ThreadStart(showModalDialogThread)).Start();
}

private void showModalDialogThread() {
ModalDialog myDialog = new ModalDialog();
myDialog.ShowDialog(this); // freezes the application on close event
}
}

public class ModalDialog : Form { ... }

Thanks ahead of time to anyone who can help,

Jeff
AnswerRe: Modal Dialogs Pin
TJoe12-Oct-07 6:13
TJoe12-Oct-07 6:13 
GeneralRe: Modal Dialogs Pin
Skippums12-Oct-07 6:27
Skippums12-Oct-07 6:27 
GeneralRe: Modal Dialogs [modified] Pin
Fayu12-Oct-07 7:22
Fayu12-Oct-07 7:22 
QuestionRe: Modal Dialogs Pin
Skippums12-Oct-07 7:02
Skippums12-Oct-07 7:02 
AnswerRe: Modal Dialogs Pin
Luc Pattyn12-Oct-07 7:20
sitebuilderLuc Pattyn12-Oct-07 7:20 
GeneralRe: Modal Dialogs Pin
Skippums12-Oct-07 7:59
Skippums12-Oct-07 7:59 
AnswerRe: Modal Dialogs Pin
Luc Pattyn12-Oct-07 7:53
sitebuilderLuc Pattyn12-Oct-07 7:53 
QuestionBase data Pin
RussBus12-Oct-07 4:51
RussBus12-Oct-07 4:51 
AnswerRe: Base data Pin
led mike12-Oct-07 4:57
led mike12-Oct-07 4:57 
GeneralRe: Base data Pin
RussBus12-Oct-07 5:02
RussBus12-Oct-07 5:02 
AnswerRe: Base data Pin
Skippums12-Oct-07 5:21
Skippums12-Oct-07 5:21 
GeneralRe: Base data Pin
RussBus12-Oct-07 5:43
RussBus12-Oct-07 5:43 
GeneralRe: Base data Pin
RussBus12-Oct-07 5:57
RussBus12-Oct-07 5:57 
GeneralRe: Base data Pin
Skippums12-Oct-07 5:58
Skippums12-Oct-07 5:58 
QuestionHow to count imgae files in a folder Pin
Member 46302412-Oct-07 4:50
Member 46302412-Oct-07 4:50 
AnswerRe: How to count imgae files in a folder Pin
led mike12-Oct-07 4:54
led mike12-Oct-07 4:54 
AnswerRe: How to count imgae files in a folder Pin
Jacky Yiu12-Oct-07 5:01
Jacky Yiu12-Oct-07 5:01 

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.