I have a borderless WinForms app.
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 app has only one taskbar entry that focuses my app (and if a dialog is open that one is focused). If I use ALT+TAB to cycle to all open windows I onl...
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?
...
Trying to open a file dialog but I get an exception when calling ShowDialog. This pice of code have always worked fine but I think when I upgrade to Silverlight 4 it caused some problem.
Code:
var dlg = new OpenFileDialog { Filter = "CSV Files (*.csv)|*.csv" };
if (dlg.ShowDialog() == true)
{
Upload(dlg.File);
}
Exception:
Di...
Hi,
i'm new to vb .net and oop although i have learned the basics. I'm working in VB and .NET CF 3.5 and i'm trying to pass and received a value with showdialog. The issue here is when i'm done with a procedure in Load, for some reason MyBase.Showdialog (line 3) gives an error of "NullReferenceException was unhandled", but the same proc...
Hi,
I encounter a problem with a Windows Forms application.
A form must be displayed from another thread. So in the form class, I have the following code:
private delegate void DisplayDialogCallback();
public void DisplayDialog()
{
if (this.InvokeRequired)
{
this.Invoke(new DisplayDialogCallback(DisplayDialog));
}...
I have a winforms application that doesn't really have a main form - it's just a simple file handling tool so it doesn't really need one.
When the application starts, first an OpenFileDialog is used to select a file. Then, a dialog box is shown using Showdialog() with some options for how the selected file should be processed. Finally...
I'm managing dialogs by showDialog/dismissDialog/removeDialog.
I want to:
Display several dialogs in kind of a stack:
a) First dialog is shown using showDialog(DIALOG_TYPE)
b) Next dialogs are shown on top of the existing dialog
Now I'm only able to display first dialog using showDialog and then next dialogs are ignored.
Display ...
I have three forms: A, B and C.
Upon a button being clicked, A displays B. Similarly, B displays C. Both using the ShowDialog() method.
However when I use the Hide() method (inside a Button Click event) on form C to close it, form B also closes.
Why would this be? As far as I can see, it shouldn't be doing this. I certainly didn't wri...
Hi.
I am testing my application on an LG Eve phone. I have an application that tries to download something from the web, and when it throws an exception, it is supposed to launch an alertdialog saying that there was an error. When the phone has no wifi signal, the program crashes at builder.create() (see code below). However, when there...
I have a ShowDialog that takes several parameters. Is there a way to also pass it a delegate to handle an event on the parent form? (As opposed to instantiating the dialog, then adding the event, then calling the default ShowDialog)
Simplified sample, if I wanted a change on the dialog to reflect instantly on the opening form:
public...
I have a main wpf form that opens a new form. However when that form opens, I'm unable to click back to the original one and use that form. The original form is locked until I close the newly opened form. How do I open both forms so that the previous form can be at the very least moved around and given focus to?
Within the mainForm, the...
Hi, I'm having a weird issue with form painting in the Compact Framework. I have a login dialog that is basically a small form that is opened on top of another using ShowDialog. When a card is swiped, the login dialog is supposed to close, then some login tasks are performed and then the form behind it should be activated. The problem is...
There is a MainWindow,a usercontrol which is located in my MainWindow and a OtherForm which i am going to show from usercontrol. I sent OtherForm as parameter from MainWindow to usercontrol.And in usercontrol i am calling OtherForm.showdialog.When i show it second time ,i am getting "Cannot set Visibility or call Show, ShowDialog, or Wi...
Hy,
I have a Window with a Grid that is making a select from myql, and using the .Show() function insted of ShowDialog() I can open the same window a second time to have two instances of the same window.
Now, when i open the second instance the grid populates with the new selection also in the first window....how can i make the window ...
I create separate Window, design it with XAML and when I invoke ShowDialog from main form it seems like my dialog (Window) blinks once and then shows itself. Is it a common behavior? I didn't notice that in while working with Windows Forms. I also ran application on another computer, and get the same thing. It bothers me, cause I was dev...
Hello everyone!
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 the parent window (the one that called the MessageBox). If you do try ...