modal-dialog

Close all modal dialogs in Dojo

Does anybody know how I can close all modal dialogs created by Dojo ? Apparently there used to be a dojo.popup.closeAll function, but this is no longer available in the latest version of the Dojo API that comes with Spring JS. ...

Swing JDialog slow when running remotely

I have experienced performance problems for JDialogs while running my GUI remotely over X11. Does anyone know a workaround? The GUI is fast when I run it on my local machine, but sometimes we need to run it on a remote server - which causes a significant lag until the dialog is displayed. It takes about 2 seconds to create and display t...

When are modal dialogs truly necessary?

Modal dialogs are evil, but I keep reading "You should remove modal dialogs when possible" When isn't it possible to remove modal dialogs? I mean, what are some truly modal tasks that force us to use evil modal dialogs? The most common given example is the "Do you want to Save?" I think this is the problem of the concept of having th...

Why are modal dialog boxes evil?

Re the recent question at when are modal dialogs truly necessary?. WHY are modal dialog boxes evil? Is it because people don't read them anyway? Because they are often implemented so poorly? Something else? ...

Difference between .Owner property and ShowDialog(IWin32Window owner) ?

I presume a winform's owner can be set explicitly via the .Owner property OR by passing the owner in the overloaded method ShowDialog(IWin32Window owner) I am unable to understand why these methods exhibit different behavior when working with MDI forms. I have created an MDIParent and an MDIChild. I also have a simple winform MyDialo...

Modal Window Problem

Hi I am using modal window for my VB.NET program and i am trying to open this child modal window from another window, afte i close the child modal window i am trying to refresh the parent but i am getting retry/cancel popup, i tried a lot of things to avoid but i can't get rid of this popup :-( is there any way i can avoid this popup? I ...

C# OpenFileDialog Non-Modal possible

Is it possible to create/have a non-modal .net OpenFileDialog I have a UI element in the main dialog which always need to be available for the user to press. ...

WinForms AcceptButton not working?

Ok, this is bugging me, and I just can't figure out what is wrong... I have made two forms. First form just has a simple button on it, which opens the other as a dialog like so: using (Form2 f = new Form2()) { if (f.ShowDialog() != DialogResult.OK) MessageBox.Show("Not OK"); else MessageBox.Show("OK"); } The s...

Textbox in modal pop freeze up sometime on FF

I have a textbox in an Ajax ModalPopUp. Occasionally, whenever the modal is loaded, the textbox freezes in Firefox. It's not happening in Internet Explorer - just Firefox. Any suggestions? ...

JQuery Modal Boxes and Iframe

I've been using Simple Modal and i feel it doesn't live up to what i need at the moment. Is there a Modal Box that supports loading external files and allows those external files to close the modal box and redirect the parent page to some url. An example of what i want to do. You have a list of users, you could click "Add user" and a M...

How to return value from html popup

Hi, I need a terse, clean way to implement this in asp.net mvc (+/- jquery or js)? User clicks an element in webform A; Webform B pops up; User interracts with webform B; On closing webform B, probably by a submit button, the source element in webform a is updated with a value from webform B Thanks. ...

.NET: How to have Escape close a MessageBox.Show()?

Assuming the code: MessageBox.Show(this, "Would you like the differential girdle spring on the up-end of the grammeters?", "Smi-Boloid Stater Slots", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); If the user presses Escape, i want it to close the message box, and the Show() method can return Dialo...

C# Winforms: Multiple top level windows and ShowDialog()

I have a Winforms application that uses show multiple top-level windows: Form1 form1 = new Form1(); form1.Show(); Form2 form2 = new Form2(); form2.Show(); Application.Run(); Inside one of the event-handlers in Form1, I would like to be able to show a modal dialog: Dialog dialog = new Dialog(); dialog.ShowDialog(form1); without susp...

Should Form.ShowDialog(IWin32Window) work with any window handle?

When using System.Windows.Forms.ShowDialog(IWin32Window) should I be able to pass in an IWin32Window representing any window handle and have it be modal with respect to that window? As part of an IE7 extension I'm trying to open a window modal with respect to an IE tab. It's not the currently selected tab, but I can get the hwnd of the ...

Jquery UI- The overlay not resizing when dialog is resized.

Using Jquery to Open a dialog (with modal:true), which contains a form. Now i am removing some elements from the form based on choices made by user on the form.This resizes the dialog but the overlay is not resized. A shadow is left behind. Is there a way to re size the overlay when the dialog is resized? below is some code //fadeout(...

Modal Form in asp.net mvc RC using jquery

I am new to ajax / jquery and have had difficulty finding a simple sample incorporating the following: ASP.Net MVC RC1 (or 2) jquery modal form I would like the user to be able to click a link/button in a View (Parent) and have a modal form appear that contains a form. the contents of the modal dialog should be an MVC view (Child). ...

jQuery UI Dialog Issue With IE

I am using the new jQuery 1.3.2 and jQuery-ui-1.7 libraries along with the UI Dialog. I have a div tag with several form elements (textbox, checkbox, etc.) in it. Upon page load, jQuery shows the div as a dialog. This works absolutely fine in FF, but in IE, the height of the div is wrong. It is just showing the title bar a bit of t...

How to: Modal window in XBAP application

We have a XBAP application which has the following code in a Page: Person newPerson = new Person(); PersonWindow personWindow = new PersonWindow(newPerson); personWindow.ShowDialog(); Now this code is invoked from a XBAP page, the resultant window does not behave like Modal window, is there any way to achieve this without ...

How can I show a confirmation thickbox with the selection after user presses submit?

How can I show a confirmation modal dialog with the information from the form so that user can confirm what they selected in the form and it submits only if the user says so? confirm.$("#submit-button").click( function(){ if (validator.form()==true) { tb_show("Countdown", "are_you_sure.html?height=100&width=200&modal=true", "...

Temporarily Hide a Modal Dialog

I have a modal dialog displayed with the main application window set as owner (as in dialog.ShowDialog(mainAppWindow)) and I would like to temporarily allow the user to interact with the main application window before returning to the modal dialog again. How can I do this? I am using Windows Forms. Edit: AutoCAD does this well. ...