473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Keep Open the MessageBox until closing the system

Is there anyway to keep open the MessageBox, at the same time, user is allowed to use another form to do their work?
Apr 13 '10 #1
8 2235
tlhintoq
3,525 Expert 2GB
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.
Apr 13 '10 #2
@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.
Apr 18 '10 #3
tlhintoq
3,525 Expert 2GB
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();
Apr 18 '10 #4
@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
Expand|Select|Wrap|Line Numbers
  1. public class mainWindow
  2.        public void button_click(object sender, RoutedEventArgs e)
  3.        {
  4.                 //some methods to perform checking.
  5.                  errorForm ab = new errorForm();
  6.                  ab. show();
  7.        }
  8. }
Child Window
Expand|Select|Wrap|Line Numbers
  1. publc class errorForm
  2. {
  3.      public errorForm()
  4.      {
  5.            checking();
  6.      }
  7.  
  8.      public void checking()
  9.      {
  10.             //Code that used to display error message on the child form.
  11.      }
  12. }
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.
Apr 18 '10 #5
@Janice Hui
Do you want both the windows to be side by side?
Apr 19 '10 #6
@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.
Apr 24 '10 #7
tlhintoq
3,525 Expert 2GB
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?
Apr 24 '10 #8
@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
Apr 29 '10 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

3
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...
2
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...
2
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...
2
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...
6
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...
5
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....
7
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...
3
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...
3
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....
5
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...
0
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...
0
isladogs
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...
0
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...
0
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...
0
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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
0
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...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.