Rahamathulla_J
asked on
messagebox display in taskbar
//Rahamath
this.btnAddRecord.Location = new System.Drawing.Point(416, 304);
this.btnEditAuthenticate.L ocation = new System.Drawing.Point(252, 304)
I my winform application after the form loads it will populate a message box using thread for user input (Ok/Cancel). It is working fine. The problem is the message box directly loaded in the taskbar so the user has to click that tab from the panel to see the message box in the center screen. The new user may not aware of that the appliation need a user input.
I want to show the message box in the center screen instead in the taskbar how can i do this? and what is the problem.
this.btnAddRecord.Location
this.btnEditAuthenticate.L
I my winform application after the form loads it will populate a message box using thread for user input (Ok/Cancel). It is working fine. The problem is the message box directly loaded in the taskbar so the user has to click that tab from the panel to see the message box in the center screen. The new user may not aware of that the appliation need a user input.
I want to show the message box in the center screen instead in the taskbar how can i do this? and what is the problem.
If this did not solve your problem, post the code that you're using right now to display the message box.
Also, if you want the form to be focussed to the user immediately you can use the code:
this.Activate();
MessageBox.Show(this, "MyMessage");
this.Activate();
MessageBox.Show(this, "MyMessage");
ASKER
Hi Adecus,
I tried your idea
MessageBox.Show(this, "MyMessage");
the message box coming behind the main form screen. What is the problem? I hope this is the problem with the running of 2 threads. 1 main thread and 1 thread for the Messagebox
I tried your idea
MessageBox.Show(this, "MyMessage");
the message box coming behind the main form screen. What is the problem? I hope this is the problem with the running of 2 threads. 1 main thread and 1 thread for the Messagebox
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
MessageBox.Show(FormObject
In your case, I think you will have the code:
MessageBox.Show(this, "MyMessage");
-Adecus