Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The message is in the bottom. I want to make it to appear direct on the screen without clicking the message icon at the bottom. Some times it is appearing on the main screen but most of the times it is at the bottom.
Here is my code:

System.Windows.Forms.MessageBox.Show("Please select a category");

Can anyone guide please.
Posted
Comments
Leo Chapiro 12-Apr-13 10:27am    
>The message is in the bottom - What do you mean by that? The bottom of what?
Sergey Alexandrovich Kryukov 12-Apr-13 12:07pm    
In ASP.NET?! Are you serious?
—SA
[no name] 12-Apr-13 12:07pm    
As a side note, if you think that this is going to work on a web page, you need to think again.

It's simple: System.Windows.Forms.MessageBox should never be used in ASP.NET. It would show a message on server-side, where the HTTP server is, why? And it will totally block the processing of the page, because no one is going to press a button. :-)

Besides, the example of the message text shown in the question makes no sense. This is not how UI should be developed, not even close.

—SA
 
Share this answer
 
Comments
BillW33 12-Apr-13 15:28pm    
Good answer and good comment on the quality of the UI. :) +5
Sergey Alexandrovich Kryukov 12-Apr-13 15:35pm    
Thank you :-)
—SA
Leo Chapiro 12-Apr-13 15:59pm    
Good answer +5 :)
Sergey Alexandrovich Kryukov 12-Apr-13 16:09pm    
Thank you.
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900