I want to add a popup window which is a child window of my main asp.NET form. This window accepts the information through drop down list selected by the user. When this window is opened the focus will go to this window and main window will disable.
Use showModalDialog for opening the popup window.
window.showModalDialog("childpage.aspx", "", "center:yes;resizable:no;dialogHeight:480px;dialogWidth:750px;");
This will make parent page disabled in IE.
Related
I need to move focus from popup window to parent window without closing popup window. For example Find and replace dialog-box behavior in Excel.
how to achieve this in WPF C# coding.
Call .Show() instead of .ShowDialog() when you displaying your popup. If you want to keep it on top - set popup window 'TopMost' property to true.
I want to show a login dialogbox before showing the main window. I call this dialogbox inside the OnInitialize of the main viewmodel. I got an InvalidOperationException with "Cannot set Owner property to a Window that has not been shown previously."
So, how to show a dialogbox before any other window?
The dialogbox is declared as < Window >
I put the call to the login dialog into the OnViewLoaded of the rootview and the exception is gone. The rootview is already shown together with the login dialog.
Change your App.xaml's StartupUri to be your dialog window. And when login is successful, you then open the main window.
I have to display a usercontrol containing 2 datepickers, 2 buttons ( validate, cancel ) in a modal popup.
This popup is shown when the user has clicked on a specific button on the form.
Any ideas ?
Thnks in advance
You can add your user control to a Form -- say you called if frmPopup, create a new instance of it and call it with ShowDialog(). You need to have a pair of buttons on the Form as well to give the user a way to close or cancel the dialog. Microsoft has more information for you here
Is there an event that fires on a mdi child form when said form is selected in the "Window" menu of an mdi parent? I tried just detecting focus but I need to be able to know when the menu item is clicked even if the child window to which it corresponds is minimized.
You can try the Activated event. It fired when the form is on top
i wanna to do the following: but i donot how to do this in the correct way..
i have specific form has some buttons.. i wanna when click on a button a modal form appears,and this new form contains server controls and events fired when happening on this form how to handle this case like the dialog form in the Windows application..
Take a look on telerik controls :
http://demos.telerik.com/aspnet-ajax/window/examples/overview/defaultcs.aspx