January 24th, 2008 07:13 PM
Message Box in C#
What is a good way to code a messagebox in C#, like the AfxMessageBox in used in Visal C++?
For code like the following, there must be a "using..."
declaration missing because I got this error:
error CS0246: The type or namespace name 'MessageBoxButtons' could not be found (are you missing a using directive or an assembly reference?)
string message = "blah";
string caption = "blah";
MessageBoxButtons buttons = MessageBoxButtons.YesNo;
result = MessageBox.Show(message, caption, buttons, icon);
Also, is there a good way to write information out to a log file?
By cheyenne1212 in forum Miscellaneous Security Discussions
Last Post: February 1st, 2012, 01:51 PM
By ThePreacher in forum Miscellaneous Security Discussions
Last Post: December 14th, 2006, 08:37 PM
By AsCenDinG in forum Microsoft Security Discussions
Last Post: July 24th, 2004, 04:04 PM
By rajat in forum Roll Call
Last Post: February 20th, 2002, 04:08 AM
By antihaxor in forum Non-Security Archives
Last Post: January 24th, 2002, 04:42 PM