narayana_anthati Posted October 11, 2006 Share Posted October 11, 2006 Hai, Can any body help me.i am new to c#.net.In vb we have message box.Like that how we can use messagebox's in c#.Plz send me it's urgentThanks in advanceRegards,Narayana Link to comment Share on other sites More sharing options...
aspnetguy Posted October 11, 2006 Share Posted October 11, 2006 I assume this is not for a web project then because you cannot use the MessageBox object for web projects you muast use javascript alert().That being said it is used like this MessageBox.Show("Are you happy now?"); or as a confirmation box like this MessageBox.Show("Are you happy now?", "Mood Test", MessageBoxButtons.YesNo); Link to comment Share on other sites More sharing options...
narayana_anthati Posted October 11, 2006 Author Share Posted October 11, 2006 Hai, Can any body help me.i am new to c#.net.In vb we have message box.Like that how we can use messagebox's in c#.Plz send me it's urgentThanks in advanceRegards,Narayana Hai, But it is asking assembly reference.plz send which is refers.regardsnarayana Link to comment Share on other sites More sharing options...
aspnetguy Posted October 11, 2006 Share Posted October 11, 2006 using System.Windows.Forms;you will need to add a reference to the dll in VS as well Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now