469,568 Members | 1,395 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,568 developers. It's quick & easy.

Message box gets minimised on taskbar


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
8 4987
13,262 8TB
What other code do you run after the
Expand|Select|Wrap|Line Numbers
  1. System.Windows.Forms.MessageBox.Show("WELCOME");
Mar 5 '09 #2
kunal pawar
297 100+
Can you submit code from your are calling MessageBox.show(...); This will help us to know your problem.
Mar 5 '09 #3
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
13,262 8TB
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
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
7,872 Expert 4TB
You should not be using System.Windows.Forms.MessageBox.Show in a webapplication.
You should be using javascript's Alert()
Mar 6 '09 #7
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
7,872 Expert 4TB
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.

Similar topics

1 post views Thread by vijay | last post: by
4 posts views Thread by - Dan - | last post: by
2 posts views Thread by JohnProgrammer | last post: by
5 posts views Thread by axapta | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.