By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,471 Members | 722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,471 IT Pros & Developers. It's quick & easy.

Message box gets minimised on taskbar

P: 18
Hi,

I am using the messagebox code as System.Windows.Forms.MessageBox.Show("WELCOME"); , in my application to get a message box. I get as a minimised window of the messagebox on the taskbar. I want to avoid this minimising of the messagebox and it should come in the application as any other normal messageboxes. Can anybody tell me what am I supposed to do to remove this minimising of the messagebox window on the taskbar and instead to get it in the center of the page at runtime.
Mar 5 '09 #1
Share this Question
Share on Google+
8 Replies


10K+
P: 13,264
What other code do you run after the
Expand|Select|Wrap|Line Numbers
  1. System.Windows.Forms.MessageBox.Show("WELCOME");
line?
Mar 5 '09 #2

kunal pawar
100+
P: 297
Can you submit code from your are calling MessageBox.show(...); This will help us to know your problem.
Mar 5 '09 #3

P: 18
for some pages like loginpage, I will write responce.redirect("Home.aspx");
after System.Windows.Forms.MessageBox.Show("WELCOME");

In some pages i have written System.Windows.Forms.MessageBox.Show("WELCOME"); after saving the values into the database in try block, after try block i write the catch block and close the save function.
Mar 5 '09 #4

10K+
P: 13,264
If you open another page after showing the pop up then the pop up may be minimized. Better show the pop up from that Home.aspx page.
Mar 5 '09 #5

P: 18
I am getting the same result irrespective of where ever I use the message box. I am getting the minimised message box. I am using the message box in web based project and its not a console application.
Mar 6 '09 #6

Plater
Expert 5K+
P: 7,872
You should not be using System.Windows.Forms.MessageBox.Show in a webapplication.
You should be using javascript's Alert()
Mar 6 '09 #7

P: 18
I tried using alert messages, it shows the heading of the messagebox window as Internet Explorer and an icon of warning message come in the message box which I dont need. How to remove the icon and customise the heading of the message box window. If I can get any example code for this type of message box it would be helpful. Please help.
Mar 9 '09 #8

Plater
Expert 5K+
P: 7,872
I'm not sure you can, I don't see why it matters but thats up to you.

Using windows.forms will only work in IE though.
Mar 9 '09 #9

Post your reply

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