Output using Messagebox in c#
If I do not开发者_如何学运维 want to use "Messagebox.Show", what other option do I have in C#.
You can always create your own form and display it yourself, just like with any other form. If you could post some information about why you don't want to use MessageBox.Show
, someone might be able to offer more specific advice.
There are a lot of ways to display feedback messages to users.
If I'm not using a MessageBox, then I use a Label.
I set the text to "" or hide it and then when I want to display a message set the text and visibility.
If you're talking about diagnostic output, that's what Debug.WriteLine
(and its cousin, Trace.WriteLine
) have been made for.
精彩评论