Questions tagged [showdialog]
398 questions
6
votes
1 answer
Why does closing a nested child dialog also close the parent dialog?
I open a form as a modal dialog using ShowDialog. This dialog in turn allows another form to be opened as a modal dialog again using ShowDialog.
When the innermost dialog is closed, this causes its parent dialog to close as well. Why does this occur…

Warren Blumenow
- 673
- 2
- 11
- 17
6
votes
3 answers
Looking for an Elegant "Dont Show Me This Dialog Again" Dialog in C#
I've been looking for a dialog with a checkbox "Don's show me this dialog again" in C#.
I googled and search a lot, but I just could not find an elegant solution.
The dialog should work as similar as the native MessageBox.Show, but with a new…

Peter Lee
- 12,931
- 11
- 73
- 100
6
votes
2 answers
C#/WPF, how to make a window (created with Window.ShowDialog()) title bar blink when clicking its parent window (like MessageBox does)?
I'm trying to create a custom MessageBox by using a WPF Window that is called with ShowDialog().
So far, I've managed to implement everything, except for one thing.
As you know, when you use MessageBox.Show("text"); you cannot set the focus or click…

Ze Pedro
- 61
- 1
- 2
6
votes
1 answer
Windows Forms and ShowDialog problem
I have a borderless Windows Forms application.
The main window creates other forms (simple dialogs where I can click yes or no) with ShowDialog().
Every created dialog is not visible in the taskbar, my application has only one taskbar entry that…

Jürgen Steinblock
- 30,746
- 24
- 119
- 189
6
votes
3 answers
WPF - Force ShowDialog to return
How can I force ShowDialog to return from a background thread?
I have a WPF application built on top of a C++/CLR framework which is listening to messages sent by the framework. One particular message is so important that I need to close all the…

Hypherion
- 177
- 4
- 9
5
votes
3 answers
flutter showdialog setState() or markNeedsBuild() called during build
I have a streambuilder which reads a firestore database and then react according to that. it is currenlty listing some info from my database however i want to add a popup screen for a specific value occurs in the database and when i added a…

Faruk
- 773
- 1
- 6
- 20
5
votes
2 answers
WPF: Should I manually call Close on windows opened by ShowDialog method?
The thing is that WPF Window doesn't implement IDisposable interface which led me to believe, that I don't have to manually dispose of it when I open it by calling ShowDialog() but the first comment on this MSDN page states differently. Does anybody…

aks
- 292
- 1
- 5
- 12
5
votes
4 answers
How can I return a value from a ShowDialog window?
frmMain
DoSomething()
My.Forms.frmMessage.ShowDialog(Me)
If AcceptButtonClicked Then
' Do Code
DoCode()
Else
' Cancel Button Pressed
DoOtherCode()
End If
DoMore()
frmMessage
My.Forms.frmMain.AcceptButtonClicked = True
Is there a way to pass a…

Landmine
- 1,759
- 6
- 39
- 60
4
votes
2 answers
DialogResult problem in wpf
I have a window that I open a few times as a ShowDialog.
Every time I open it I use the new keyword
in the first time i did:
var myWindow = new MyWindow();
myWindow.ShowDialog();
second time I open it from the MyWindow View Model class:
new…

Maya
- 989
- 4
- 12
- 19
4
votes
2 answers
Is there an event or something i can use when a showdialogwindow is blocking the window i try to access
I have 2 windows. Lets call them A and B.
A is opening B with a ShowDialog().
So I am opening B - When the user minimizes B or gets it into the back somehow and he tries clicking window A again its blocked (as it should be), but is there an Event…

Tanner Hall
- 58
- 5
4
votes
2 answers
jFileChooser.showOpenDialog() freezes the application..no error / exception..tried several things
I am making a Summarizer project in NetBeans 6.9.1 in that I have a "Browse" button which should open a open dialog box on JFileChooser. I looked over here: very similar question on stackoverflow
My problem is just the same, I tried setting the…

Navin Israni
- 1,327
- 3
- 15
- 27
4
votes
5 answers
Closing a .NET form causes the parent to minimize
I have an issue where the parent form will minimize to the task tray (but I don't think it is losing focus because the next form that shows, the Studio IDE, has focus) when I close a dialog/form that was shown by calling ShowDialog(owner).
The weird…
Eric
4
votes
0 answers
What causes Window.ShowDialog slow in WPF?
I'm working on a complex WPF application, and sometimes the simple Window.ShowDialog calls are slow. It takes around 5~10s to show the window. From profiling I see all native stuff:
It seems PushFrameImpl takes most of the time. What may possibly…

Jeffrey Zhao
- 4,923
- 4
- 30
- 52
4
votes
5 answers
showDialog in button Listview adapter
i have a listView like THIS
i want when i press the delete. it show a dialog like this image
so when i press YES. it will remove from list.
here's my code..
public class customadapter extends BaseAdapter{
ArrayList>…
user2809386
4
votes
2 answers
ShowDialog on MEF Component Only Works Once
I created a WPF Window and made it a MEF Export.
I can do a ShowDialog once on the MEF Import but the second time it aborts because the MEF component was closed by the first ShowDialog.
What can be done to allow repeats of ShowDialog?

BSalita
- 8,420
- 10
- 51
- 68