Questions tagged [showdialog]

398 questions
4
votes
4 answers

Form.ShowDialog OK button doesn't work

In my MainForm I'm declaring a second form: Form3_addrow testDialog; I've got a button and method OnClick: private void button2_Click(object sender, EventArgs e) { ShowMyDialogBox(); } And ShowMyDialogBox() method: public void…
bred_one
  • 147
  • 3
  • 15
3
votes
3 answers

VB.NET: What is the best way to retrieve a value from a second form?

I'm teaching myself VB.Net. Here is a problem I have recently come across. Say I have a main Form1 in my application. Form1 calls a second LoginForm which (like the name suggests) is a login window with username/password type fields. Expected…
Robert Ngetich
  • 1,114
  • 2
  • 11
  • 22
3
votes
2 answers

Unexpected behaviour of System.Windows.Window.ShowDialog() when no other windows are open. Any idea why?

I picked up on this (with some effort) when my WPF MVVM application tried to show two consecutive error dialog windows before the main window was launched: After OKing the first window, the application went into a loop and the second error dialog…
Pieter Müller
  • 4,573
  • 6
  • 38
  • 54
3
votes
0 answers

android studio lambda expressions are not supported at language level 7

I am getting the error lamba expressions are not supported at language level 7 in android studio that i am using. Anyone know how i could fix this issue. FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); …
KDD
  • 41
  • 1
  • 5
3
votes
2 answers

Navigator.pop won't close the simpledialog in flutter

I'm building android app using flutter. I have a problem to close the simple dialog programmatically. Now I have a stateful page named ListVessel. This page contains listTile from array otherVessels. Below is the code for this page. class…
3
votes
2 answers

FlutterDriver - how to close showDialog

I am working with FlutterDriver, I have an IconButton defined and a key set as shown: Center( child: IconButton( key: Key('moredots'), icon: Icon(Icons.more_vert), onPressed: () { showDialog( context: context, …
John Muchow
  • 4,798
  • 8
  • 40
  • 40
3
votes
3 answers

How to correctly ShowDialog() from inside an MDIChild form?

I have an MDIChild form that needs to show a dialog. I'm currently doing it like this from inside the mdichild form... f.ShowDialog(Me) Should I be using f.ShowDialog(mdiparent)? What is the difference when setting the owner before calling…
dotjoe
  • 26,242
  • 5
  • 63
  • 77
3
votes
1 answer

Android ShowDialog : IllegalStateException: Can not perform this action after onSaveInstanceState

In runOnUiThread() of an Activity, I'm trying to show a ProgressDialog. FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction(); ProgressDialogFragment mProgressDialogFragment = new ProgressDialogFragment(); …
3
votes
2 answers

How to check whether the form has any ShowDialog() forms open?

I have a form MainForm with several properties/methods that are accessed from another thread. At some point I might open a form AuxForm with ShowDialog() and then while that modal form is open, the other thread still modifies the MainForm's…
Kornelije Petak
  • 9,412
  • 15
  • 68
  • 96
3
votes
2 answers

BizTalk Configuration.exe remote execution error

I'm writing a script to automate the installation of BizTalk Server and then apply the configurations through the BizTalk "configuration.exe" utility. When I run the configuration.exe utility locally and supply it with the config xml, it works…
3
votes
1 answer

How to wait for form to close without ShowDialog()?

In my program I use WebBrowser control for OAuth. It's located on vk_auth_window form. So in the code I call vk_auth_window.WebBrowser1.Navigate(vkauthurl). If authentication is successful, I silently get token, but if user is not authenticated a…
Konstantin Pereiaslov
  • 1,786
  • 1
  • 18
  • 26
2
votes
5 answers

Can I set ShowDialog() to not be topmost?

Is there a way I can set a ShowDialog() to not be topmost? I've looked at all the related SO questions, and none quite matched my situation. What I do is open a new WinForm from a datagridview button column. This new form pulls information from a…
Jared Harley
  • 8,219
  • 4
  • 39
  • 48
2
votes
2 answers

How to Link Different Form?

I got great help in my first question n hopefully someone will tell me or refer me to an earlier question about this topic. I want to link different forms like I click on a button on first one and it opens the second one.Basically I'm going to make…
Zeeshan
2
votes
1 answer

Remove 'Webpage Dialog' from 'showModalDialog' window using jQuery or javascript

Somewhere in page, I use onclick="window.showModalDialog("http://rauf-thecoder.blogspot.com/");" . It will show the following. How can I remove the Webpage Dialog text from the title bar :( I am happy to use jQuery too.
Rauf
  • 12,326
  • 20
  • 77
  • 126
2
votes
2 answers

Transparent Background and No Buttons When Customizing Content of an AlertDialog on onPrepareDialog on Android

I am having some difficulties to update the content of an AlertDialog on the onPrepareDialog method. I am setting the content of the AlertDialog, but the dialog comes to the screen with no buttons and no background. Probably the problem is related…
rlc
  • 5,809
  • 5
  • 38
  • 46
1 2
3
26 27