Questions tagged [showdialog]
398 questions
0
votes
3 answers
Binding TextBlock text in a new Window?
I've created a warning window to verify delete actions by the user, using Window.ShowDialog and setting the DialogResult. Everything works fine, except that the warning text doesn't appear in the TextBlock and I don't know why. Here's my…

Aaron D.
- 141
- 1
- 4
- 15
0
votes
2 answers
replacing show() with showdialog()
I am opening a form at run time from the main gui form using form.showdialog();
I set the proppeties likeform should appear in center etc
form.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
form.ClientSize = new…

user1903439
- 1,951
- 7
- 19
- 29
0
votes
0 answers
Flickering when showing a translucend custom Form via ShowDialog()
I need to show a dialog form (MessageForm) over the main Form (ParentForm). The MessageForm contains a panel (mainPanel) on which I add some controls on runtime (the close button and many Labels and LinkLabels).
MessageForm has a specific behavior:…

kirpi4
- 143
- 1
- 1
- 11
0
votes
2 answers
How to show a dialog with ok and cancel on button click in wpf (mvvm)?
I am trying to display a dialog with ok and cancel button on a button click. And depending on the dialog result I would like to save\cancel the operation in wpf. I am not sure how to show a dialog in wpf. Any help?

Virus
- 3,215
- 7
- 29
- 46
0
votes
1 answer
Mono Form.Show from another form doesn't work
I am trying to port a WinForms app for use with Mono, and I've recently noted that calling Form.Show() from another form will either do nothing or cause the new form to flash and disappear. I read something about the new form needing a message pump,…

Nifty255
- 397
- 2
- 3
- 14
0
votes
1 answer
Showdialog "Corruption" error vb.net after SQL use. Database MS Access
Ive searched on this error plenty, and have tried all the fixes i found.
Im making a document management system. And i have no prior vb experience, just figuring it out as i go. I have run into this problem now and i have no idea what the heck to do…

NickS
- 23
- 5
0
votes
4 answers
How can I disable the parent window in C# when the child window is open?
I have a timer class that I created that monitors the license of the software. When an error occurs I call ShowDialog() to show my customized windows form. My problem is how can I disable the parent window? Here's a simple example of my problem. …

user1598995
- 1
- 1
- 2
0
votes
1 answer
How to customized icon image on a dialog box
I used a button click event to call the dialog box as follows:
private void btnDialog_Click(object sender, EventArgs e)
{
DialogResult result = BetterDialog.ShowDialog("Special Dialog", "large heading", "small explanation", null, "Ok",…

Sami-L
- 5,553
- 18
- 59
- 87
0
votes
2 answers
Customized MessageBox (dialog box) Windows Forms C#
In order to try to use a dialog box instead of MessageBox I used the next code:
static public DialogResult ShowDialog(string title, string largeHeading, string smallExplanation,
string leftButton, string rightButton, Image iconSet)
…

Sami-L
- 5,553
- 18
- 59
- 87
0
votes
1 answer
Display text name of child instead of parent on Windows Mobile application
I have a vb.net application that uses ShowDialog() to open child screens.
Long story short, I had issues with focusing the control if I opened IE on top of my program without minimizing the program. Once I reactivated my program and closed a child…

thecoolmacdude
- 2,036
- 1
- 23
- 38
0
votes
1 answer
Form.ShowDialog open just once when running in a loop
I'm have a Form1 and when I run a loop I need to open another form(Form2).
The problem is that when I run the loop it shows the Form2 only for the first time, then the Form2 is opened and close automatically.
To probe it I wrote this simple code…

Ignacio Gómez
- 1,587
- 4
- 23
- 41
0
votes
1 answer
WPF prevent Owner window to be used
I am using WPF with C#.
I have a windows that is full screened. Upon this window I open a Dialog.
My Dialogs are just another Window that is designed different and are centered on this Owner.
During the first Dialog, I have a button that closes this…

Programer
- 1,005
- 3
- 22
- 46
0
votes
4 answers
showDialog() shows result without call
I´ve got the following code-line to show a Window in a MessageBox:
MessageBox.Show(new ElbaKostenstellen(titel, loginid).ShowDialog().ToString());
The problem is, that when I close it, another MessageBox starts with true or false, but I never told…

user896692
- 2,351
- 7
- 36
- 57
0
votes
2 answers
Keeping the parent DialogButton open after the child DialogButton is closed
I'm having a problem in keeping the Parent Form to be opened till I close after using ShowDialog() .
I've been trying regarding this but couldn't get. I think there is something simple that I might have been missing. Can you please help me reg…

Sailoosha
- 193
- 1
- 3
- 14
-1
votes
3 answers
Trouble with Form.DialogResult
private void mnuCustomerAdd_Click(object sender, EventArgs e)
{
CustomerForm frmCust = new CustomerForm("Add A New Customer");
int index = lstCustomers.SelectedIndex;
if (index != -1)
frmCust.CustomerData =…

Petrus K.
- 840
- 7
- 27
- 56