Questions tagged [showdialog]

398 questions
-2
votes
1 answer

ShowDialog not appearing

I copied a code from online. It's for my homework. The homework instruction was this: "Write a GUI application named HomeSales that prompts the user for a salesperson initial (D, E, or F). Either uppercase or lowercase initials are valid. While the…
-2
votes
2 answers

How to close a form that opened another form using ShowDialog()

so i have this frmUser but to close this i have to call frmPass (which i called using ShowDialog()instead of Show()) that will confirm first if the user is an admin but the problem is when i execute the codes below frmUser us = new…
Enriko
  • 77
  • 7
-2
votes
1 answer

How can I use the .Show() method in such a way the user can't click other forms already opened in background?

Now i'm using a'jobdone' flag and the following behaviour (that it looks quite horrible to me...): Dim NewLoginForm As New LoginClass LoginClass.jobdone = False NewLoginForm.Show() While (LoginClass.jobdone = False) …
Luf
  • 63
  • 1
  • 2
  • 11
-2
votes
1 answer

Using ShowDialog() in C# to display a message

I want to use show dialog () to display a message in another form. How do I show the message? Here's what I've tried. //return total return total; //change total to string total = total.ToString; //create an instance of the MessageForm…
dijit
  • 1
  • 3
-2
votes
1 answer

VB.NET Application.Exit not closing forms opened using ShowDialog

I have a .Net application with multiple forms invoked using form.ShowDialog(). When I do Application.Exit, the application is not closing all the forms. When I try to do an explicit Form.Close I am getting an error from WinForms as below at…
-3
votes
1 answer

Form.ShowDialog Methode

I have created a software, which save some Information in an Excel File. The software has two possibilities: To select the folder and then the software will create an Excel File with random name and there will save the data , or To select an…
kn1ghtxx
  • 39
  • 7
-3
votes
1 answer

Why does ShowDialog() show old message?

Why does ShowDialog() show old message? I entered a "test message" for my ShowDialog, then changed it to a new message. But it is still showing the "test message" New Code private void addButton_Click(object sender, EventArgs e) { …
1 2 3
26
27