Questions tagged [showdialog]
398 questions
0
votes
2 answers
VB.NET - Can't I "disable" the Startup form when it open a new form?
I have learn today that using the method .ShowDialog() to open a new form, it will not allow to user (until the new form be closed) to "use" this form but I tried do it and this form still can be "usable".
The form that open the new one is my…
0
votes
0 answers
Form Hides Behind Screen Form Location X and Y Negative After ShowDialog()
I am working with a dual monitor screen.I have a situation where form is going behind the main form.I kept a log file that tracks the form move and location changes.I keep writing the log file with form Position.
I observed that form location is…

lokendra jayaswal
- 298
- 1
- 6
- 19
0
votes
2 answers
Windows Forms method Form.ShowDialog() strange behaviour
I was trying to show a form(FormChild), with some radio buttons in, just to select, close, and get the value of the selected radio button from the calling form(FormParent). On a click event handler for a Button in FormParent, I just did:
var…

Ramon Araujo
- 1,743
- 22
- 31
0
votes
3 answers
Return a file name property
I'm working on an assignment and I need to use an OpenFileDialog Class to choose a .txt file and return that file name property to a function called GetFileName()
Now this is the code I have for my button click:
Private Sub
…

j_fulch
- 125
- 2
- 13
0
votes
2 answers
I have opened a form using Form2 fm2 = new Form2(); how do i hide the 1st Form?
I have written this when I made a quiz.
I declare that if radioButton1 is checked you get 1 point and it shows in the next form. As it is now my program opens up a new form for every question and doesn't hide the old ones.
Form2 fm2 = new…

user2873537
- 1
- 1
0
votes
1 answer
Android alternate for supressed show Dilaog
I was using Show Dialog for creating Date Picker in Android, I was successfully able to do it using. I want date picker to appear on buttonClick but done through showDialog which is deprecated, I was using..
Main Activity
@Override
public void…

Alok Agarwal
- 3,071
- 3
- 23
- 33
0
votes
1 answer
ShowDialog() does not wait for input
Maybe this problem is very easy for some, but it's bugging me.
The behaviour I am looking for is:
- when I select an menu item, a dialog appears;
- after the dialog selection is made, a new form is rendered, according to the selection made
This is…

Coral Doe
- 1,925
- 3
- 19
- 36
0
votes
2 answers
Code after showDialog is not execute when the modal window is closed by the other thread -- C#
In my program, I need to pop up the modal window prompt user to do some operations, the modal windows close automatically once user finish the operation.
in one thread, the code will be blocked at ShowDialog() and the code after it cannot be…

Yzhu
- 3
- 3
0
votes
2 answers
how to properly use the radio buttons in java
I have a problem with the following code. I created a dice program and I created some radio buttons. I want the radio buttons to do the following: When selected, I want to roll the dice the number that the button has; the problem is that once I…

user2662745
- 1
- 2
0
votes
0 answers
C# override form load
to have a good user interface, I wanna the child forms Dock in a panel on main form.
the below code works for simple show, but I want my child forms be showDialog.
so I think it's better I override the child form load and use showDialog instead open…

Iran_Girl
- 439
- 2
- 11
- 18
0
votes
1 answer
If I move a WinForms form using VB.NET code... its height also changes. But why oh why?
In the VB.NET VS2005 IDE I size this form's height to 180.
When I run this code it displays A150 B150 C180. (Not sure where the 150 comes from... or why it changes later.)
The form is still correctly displayed as 180 tall.
If I move the form's left…

Tech_Girl
- 11
0
votes
0 answers
Show new form every five seconds
I have a problem with runing new windows every for example five seconds.
I tried this code:
private: System::Void start_Load(System::Object^ sender, System::EventArgs^ e) {
Form1^ slowo = gcnew Form1();
while(1)
…

1_bug
- 5,505
- 4
- 50
- 58
0
votes
1 answer
Panningmode on scrollviewer causes wierd focus issue on ShowDialog
I have a WPF application with some content wrapped in a scrollviewer. I also have a custom dialogbox, which basically is a light customized Window I call ShowDialog() upon.
I can use this just fine on both PC and Tablet.
But now I´ve added the…

Farsen
- 1,387
- 3
- 21
- 48
0
votes
2 answers
Why does AlertDialog.dialog.show() crash the second time through?
My Android app displays an AlertDialog and everything is fine the first time through. However, after displaying and then cancelling the Dialog, it crashes on show() the second time. I tried the suggestions made in similar posts but nothing helped.…

FractalBob
- 3,225
- 4
- 29
- 40
0
votes
0 answers
JAVA show my own form as a dialog
Creating Java application, and have a task:
Need to open new form from my "parent" form, but it should be opened like a dialog
(block "parent" form from editing, while new form is opened)
Tried, to add JDialog component to form, and then show it,…

Edgar
- 1,120
- 4
- 28
- 53