Questions tagged [showdialog]
398 questions
-1
votes
2 answers
Showing two copy of dialog wpf mvvm
So I am developing a two-screen application using wpf with mvvm light. I want to mirror them as much as possible. However, I run into problem with the showdialog for windows. Because ShowDialog will put the dialog window into focus and require the…

kjaydenle
- 1
- 2
-1
votes
1 answer
Cannot set form properties when using .Show()
I designed two forms in VB. The main form sets the height and width of the 2nd form and opens it with .ShowDialog(), everything is fine.
Now I need to open the 2nd form non-modal with .Show(), but some things don't work now:
The height and width…

Stefan L.
- 65
- 10
-1
votes
1 answer
Form ShowDialog won't load image in picture box
When I refresh my form with SHOWDIALOG my image doesn't load in my picture-box but if i refresh with only SHOW it works fine.
I want to be able to refresh with SHOWDIALOG and still have my picture load method work.
I have tried clearing…

Rickal Hamilton
- 35
- 7
-1
votes
2 answers
How To Make public sub form ShowDialog
How To Make public sub form ShowDialog
I have Module and i want to put a code that i can use it in all project to open forms .
I have Tried to put this code in Module Put Not Working
Public Sub OpenForm(ByVal Frm As Form)
Frm = New Frm()
…

Salem
- 87
- 1
- 2
- 7
-1
votes
4 answers
Windows form application sequential ShowDialog()s
well I have a funny problem with closing dialog forms.
here is the problem:
I run application and open second form (through menu strip) as showdialog(); and then from second form open third form. When I open third form by button 1 and then close it…

mohamadkamal
- 43
- 6
-1
votes
2 answers
While speedily clicking on item of gridview, same method has been called twice a time
I have used grid view in my project. When I click on grid view item speedily, it calls the same method twice a time. But I slowly click, then it works perfectly.
In method below I call the dialog box. When I click the item it opens the dialog box…

Radhika
- 13
- 6
-1
votes
1 answer
showDialog(DIALOG_EXIT); error
what am I doing wrong?
I want to display an AlertDialog - "or close an application" beats me an error
Error:(141, 9) error: cannot find symbol method showDialog(int)
what should I do?
public class ZavdanFragment extends Fragment {
//аргумент…

Vgaday
- 3
- 2
-1
votes
1 answer
Items must be empty before using Items source with showdialog
The problem is recurrent, unfortunately, I didn't find the solution for my case :
I use an itemcontrols in a synchronized dialog (using showdialog command). The itemControls shall be defined as soon as the dialog is opened (or before, but then, I…

Hermios
- 622
- 1
- 5
- 20
-1
votes
2 answers
C# - How to detect user's attempt to remove focus from a modal form
I need a modal form to notify user (e.g. by shaking itself) when user is attempting to access any other form of the application (by mouse clicking or anyhow else).
The problem is that I can't detect this attempt. Events /Deactivate,LostFocus,Leave/…

Alex D.
- 7
- 2
-1
votes
2 answers
When i use showalert after the dialogbox it goes to the Homescreen?How to stop it?
When i use
protected void onPostExecute(String result) {
if (result.contentEquals("Success")) {
if(tellAFriend.message.contentEquals("Success")){
showAlert(TellAFriend.this,…

zyonneo
- 1,319
- 5
- 25
- 63
-1
votes
2 answers
Click the button twice to close form in showdialog mode
On main form i've got button and methods:
private void button2_Click(object sender, EventArgs e)
{
ShowMyDialogBox();
}
public void ShowMyDialogBox()
{
testDialog= new Form3_addrow(tran_in);
DialogResult dr =…

bred_one
- 147
- 3
- 15
-1
votes
1 answer
Application hanging on DialogResult.OK
Im having some trouble my program hanging when selecting a file in a file dialog. This is the code that is showing the file browser dialog:
private void isForgeIncluded_btn_Click(object sender, EventArgs e)
{
…

Daniel Jørgensen
- 1,183
- 2
- 19
- 42
-1
votes
1 answer
How to Use The Form Opened When Using ShowDialog()?
Currently I am working with the ShowDialog() method and trying to figure out how it is supposed to work. I have a form, testDialog, that has a text box that will take an input string. I followed the code on the MSDN page as follows:
string…

Justin
- 35
- 8
-1
votes
1 answer
first time exception for showdialog
I am having a first time exception error when I run my code and I can not figure out why. I am very new to Visual Studio and I can not figure out what I am doing wrong.
Since I do not have enough points to post an image, this is the beginning of…

danieltisdale
- 9
- 4
-2
votes
1 answer
How to implement alertDialog after marker on google maps in flutter?
I want to show alertDialog after making marker on google maps because I want to ask user whether the marker on google maps is true or not. It quite similar when to show dialog for delete function. I got some problem when I was tried to make marker…
user14559438