Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
plz any one help me for this topic, in that i want only single dialog box with out button ok for any event. or any pop up box available in c# which show some message on event only message.
Posted
Updated 15-Jun-11 18:57pm
v2
Comments
Sergey Alexandrovich Kryukov 16-Jun-11 1:00am    
Always tag UI library. WPF, Forms, ASP.NET, what? I already had to give double answer. It's a waste of time; and you compromise your chances for good relevant solutions.
--SA

Well, the default dialog box does not offer that. You obviously want a modeless dialog, if you don't want people to be able to close it. You need to create your own dialog box to do that.
 
Share this answer
 
you could just just it yourself. a little form... with no okay button
 
Share this answer
 
You can define your own message box as a regular Form or Window (System.Windows.Forms.Form or System.Windows.Window) and show it in a modal mode using the method System.Windows.Forms.Form.ShowDialog or System.Windows.Window.ShowDialog.

See:
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.window.aspx[^].

I don't know what's wrong with OK button. Why doing so?

Avid over-using modal forms and dialog boxes, try to show most of the events in the main form, status bar or elsewhere.

—SA
 
Share this answer
 
Comments
harishtaware 16-Jun-11 1:03am    
actually i want show some message or text on pop-up. i am use timer for show that sequence of message without user interface in that sequence.
CS2011 16-Jun-11 1:13am    
Why don't you use tooltip for this ?
Sergey Alexandrovich Kryukov 17-Jun-11 0:03am    
Timer is a very questionable idea. Is the user don't pay attention, the message goes unattended.
Tooltip (see a comment by CS2011 below)? Why not. You were asking specifically about dialog box. The closest in behavior is the modal form; that's why I answered this way.
--SA
Christian Graus 16-Jun-11 1:16am    
Either way, the three people who all told you the same thing, all gave you a viable solution. A tooltip is another good idea, tho.
Sergey Alexandrovich Kryukov 17-Jun-11 22:29pm    
Agree, I confirmed it above.
--SA

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