Jump to content

cbox


Recommended Posts

Posted

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.

Posted (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 by Random1225
Posted
  Random1225 said:
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();

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...