Random1225 Posted August 13, 2008 Report Posted August 13, 2008 I'm new to C# and i started making a pretty basic program but i couldnt get a message box to work correctly it would always end up saying something like "namespace does not allow these characters" or "Expected class, enum, delegate, and struct". So i tried writing it in VB then i converted it to C# but it says some of the source is incorrect http://i287.photobucket.com/albums/ll130/Random1225_photos/Untitled-1.jpg so if i build it the build always fails so if someone could tell me what it wants the parts of the source to be or a way to make message boxes appeaer that would be great. Note: If this is the wrong section please move.
SmokiestGrunl Posted August 13, 2008 Report Posted August 13, 2008 Try using Exit(); instead of close. And here is the code you want for the message box MessageBox.Show ("Made by Random1225!", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk);
Random1225 Posted August 13, 2008 Author Report Posted August 13, 2008 (edited) ok thanks i'll try that Edit: I tried that and it no longer said there was a problem with the message boxes but thay dont appear when i click the buttons theyre set to and the exit thing still doesnt work. Is there another word for Exit or Close? Edited August 13, 2008 by Random1225
sillybob123 Posted August 14, 2008 Report Posted August 14, 2008 ok thanks i'll try that Edit: I tried that and it no longer said there was a problem with the message boxes but thay dont appear when i click the buttons theyre set to and the exit thing still doesnt work. Is there another word for Exit or Close? Try this.Close();
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now