Click here to Skip to main content
15,889,216 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: MC# programming language for multi-threaded programming Pin
Dave Kreskowiak20-Sep-07 6:46
mveDave Kreskowiak20-Sep-07 6:46 
AnswerRe: MC# programming language for multi-threaded programming [modified] Pin
Pete O'Hanlon20-Sep-07 10:26
mvePete O'Hanlon20-Sep-07 10:26 
GeneralRe: MC# programming language for multi-threaded programming Pin
Scott Dorman20-Sep-07 10:39
professionalScott Dorman20-Sep-07 10:39 
GeneralRe: MC# programming language for multi-threaded programming Pin
Pete O'Hanlon20-Sep-07 10:55
mvePete O'Hanlon20-Sep-07 10:55 
GeneralRe: MC# programming language for multi-threaded programming Pin
Scott Dorman20-Sep-07 11:05
professionalScott Dorman20-Sep-07 11:05 
GeneralRe: MC# programming language for multi-threaded programming Pin
Pete O'Hanlon20-Sep-07 11:10
mvePete O'Hanlon20-Sep-07 11:10 
AnswerRe: MC# programming language for multi-threaded programming Pin
Vasudevan Deepak Kumar25-Sep-07 7:41
Vasudevan Deepak Kumar25-Sep-07 7:41 
QuestionModal dialogs shown in the alt-tab window list Pin
Dave Bryant19-Sep-07 10:52
Dave Bryant19-Sep-07 10:52 
Hi all,

I've got a C# WinForms application where the top-level form displays a modal dialog to allow the user to set some options. I create it very simply as follows:

using (MyForm form = new MyForm())
{
  form.ShowDialog(this);
}


I've turned off the ShowInTaskbar property for the dialog, so it doesn't show up in the taskbar. However, if you press Alt-Tab, it appears in the window list. That itself is not too much of a problem (it just looks bad and can be a little annoying if you're trying to switch between two apps).

However, you can use Alt-Tab to switch back to the parent form even though it is currently showing the modal dialog. I'm unable to use the mouse to do anything with the parent form, BUT I can use keyboard accelerators to use menus on the parent form (with bad consequences). I've worked around this by explicitly disabling and enabling the parent form while displaying the dialog.

So I have two questions:

1) Any ideas for how I can stop my modal dialog appearing in the Alt-Tab window list? I presume it appears there because it is a top-level form, but .NET doesn't seem to like showing non-top-level forms as modal dialogs.

2) Is the approach of disabling and enabling the parent the best approach here? Or am I just missing something obvious?

Thanks,
Dave


AnswerRe: Modal dialogs shown in the alt-tab window list Pin
Fahad Sadah20-Sep-07 6:40
Fahad Sadah20-Sep-07 6:40 
GeneralRe: Modal dialogs shown in the alt-tab window list Pin
Dave Bryant20-Sep-07 10:42
Dave Bryant20-Sep-07 10:42 
GeneralRe: Modal dialogs shown in the alt-tab window list Pin
Pete O'Hanlon20-Sep-07 10:57
mvePete O'Hanlon20-Sep-07 10:57 
GeneralRe: Modal dialogs shown in the alt-tab window list Pin
Luc Pattyn20-Sep-07 13:43
sitebuilderLuc Pattyn20-Sep-07 13:43 
GeneralRe: Modal dialogs shown in the alt-tab window list Pin
Pete O'Hanlon21-Sep-07 2:54
mvePete O'Hanlon21-Sep-07 2:54 
QuestionDepreciated class.. Pin
Dio2219-Sep-07 10:16
Dio2219-Sep-07 10:16 
AnswerRe: Depreciated class.. Pin
George L. Jackson19-Sep-07 11:15
George L. Jackson19-Sep-07 11:15 
GeneralRe: Depreciated class.. Pin
Dio2219-Sep-07 16:13
Dio2219-Sep-07 16:13 
GeneralRe: Depreciated class.. Pin
originSH19-Sep-07 23:23
originSH19-Sep-07 23:23 
GeneralRe: Depreciated class.. Pin
Dio2220-Sep-07 2:18
Dio2220-Sep-07 2:18 
GeneralRe: Depreciated class.. Pin
originSH20-Sep-07 2:48
originSH20-Sep-07 2:48 
GeneralRe: Depreciated class.. Pin
Dio2220-Sep-07 10:27
Dio2220-Sep-07 10:27 
GeneralRe: Depreciated class.. Pin
George L. Jackson20-Sep-07 14:09
George L. Jackson20-Sep-07 14:09 
Question.Net Framework Version Spoof Pin
Fahad Sadah18-Sep-07 5:49
Fahad Sadah18-Sep-07 5:49 
AnswerRe: .Net Framework Version Spoof Pin
Dave Kreskowiak18-Sep-07 6:15
mveDave Kreskowiak18-Sep-07 6:15 
GeneralRe: .Net Framework Version Spoof Pin
Fahad Sadah20-Sep-07 6:32
Fahad Sadah20-Sep-07 6:32 
GeneralRe: .Net Framework Version Spoof Pin
Paul Conrad22-Sep-07 5:40
professionalPaul Conrad22-Sep-07 5:40 

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.