Is there anyway to keep open the MessageBox, at the same time, user is allowed to use another form to do their work?
8 2235
A messagebox is modal, so no.
But you can make your own Form to show any message you want with whatever buttons you like and show it non-modal.
@tlhintoq
Hi tlhintoq,
Thank for your suggestion. Now, i am trying to use the form to make this.
Another question here, i have a button on the main window. When user clicks on this button, the second form will be display. However, it opens up many same window whenver user clicks on the button. Is that anyway can be used to close the existing window when a new window is displayed? I am using WPF to build up the window.
Thank you!
Regards,
Janice.
Since Form1 is the Parent form of your second form, closing it will close the children and probably end the application.
You can however .Hide() the first form.
Form1.Hide();
@tlhintoq
Thank for your fast response.
Actually, the child window has a lists of information that is needed for user to refer in order to make futher correction on the parent window. So, when the child window is shown, the parent window can be worked. The following is my system code.
Parent window - public class mainWindow
-
{
-
public void button_click(object sender, RoutedEventArgs e)
-
{
-
//some methods to perform checking.
-
errorForm ab = new errorForm();
-
ab. show();
-
}
-
}
Child Window - publc class errorForm
-
{
-
public errorForm()
-
{
-
checking();
-
}
-
-
public void checking()
-
{
-
//Code that used to display error message on the child form.
-
}
-
}
From above, i want my system to be abled to use the child window as reference to make correction on the parent window by user. User is abled to reclick again the button to see the result after correction. This cause there have many child window appear in the screen. Is that any way to avoid this? Is that any way to quit the existing child window and display the new child diagram?
Thank a lots.
Regards,
Janice.
@Janice Hui
Do you want both the windows to be side by side?
@siddnair54
Hi siddnair54,
Sorry for the late reply, is ok both the windows to be side by side.
Since i want to refer the another diagram to do the works on main windows.
Thank you.
Regards,
Janice Hui.
It has been a while.
At this point have you worked out your issue? Do you know have your two forms working with each other?
@tlhintoq
Sorry for the late reply,
Currently i already can call form2 to display and form1 is able to edit at the same time. But i can't make form2 disappear when my form1 button is clicked again.
Is that any way to do so?
Thank you!
Regards,
Janice
Sign in to post your reply or Sign up for a free account.
Similar topics
by: s-galit |
last post by:
hi,
i have a module that created a form, and the messageBox is shown in
the closing event , but when the im choosing the "cancel" button in the
messageBox the messageBox and also the form is...
|
by: lea |
last post by:
i create few textboxes, if i enter data in txtItemCode, the rest txtbo
will display data that read from database. show below.
========================================================== Private Su...
|
by: John Dalberg |
last post by:
I have a closed box system which opens an html page. The page closes by the
system. I have access to the html page. I added code to open a child window
from this page. However when the parent...
|
by: tripyre |
last post by:
I recently resolved an issue I had with passing a variable to a call
shell command, but now I need it to pause or leave the window open so I
can manually close it. Below is my code, and I am not...
|
by: Mark Broadbent |
last post by:
Everything I have read suggests that if I open files or database connections
or the like, that I should explicitly close those said resources before
making the object subject to GC. This is...
|
by: John Bowman |
last post by:
Hi,
I need some dialog handling help, I must be missing something obvious here
but I can't figure out the solution to the following problem...
Simple Win Forms app that has button on the form....
|
by: Pi |
last post by:
I have an MDI parent with one or more children forms. Each child form has an engine thread that processes data. The child form's _Closing event is roughly
01 Private Sub...
|
by: DraguVaso |
last post by:
Hi,
In a VB.NET-application I use this to open a Database Connection:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim strConn...
|
by: Karan |
last post by:
I am calling finalize when form2 loads and deactivates form1 which closes
form1. However, same thing is not happening in form2 because finalize is
already called. Does anybody has solution to it....
|
by: sherifffruitfly |
last post by:
Hi all,
I'm certain this is stupid, but I'd like to know how to keep a form
open for, say, longer than 1ms. Here's the code I'm using to open my
form:
TestModelFileReaderForm modelInfo = new...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |