0

How to show a txt box? Basically I'm a newbie at this, done c++ console writing for a year now and moved on to win32. I've made a new project in .Net 2003... got it to load and have a close button using the following code:

private: System::Void button1_Click(System::Object *  sender, System::EventArgs *  e)
			 {
			 
				 this->show("hello");
				 this->Close();
				 
			 }

I thought it would be similar to c++ but its not, so how could i create a windows dialog that says hello?

2
Contributors
1
Reply
2
Views
12 Years
Discussion Span
Last Post by kedar_challa
0

How to show a txt box? Basically I'm a newbie at this, done c++ console writing for a year now and moved on to win32. I've made a new project in .Net 2003... got it to load and have a close button using the following code:

private: System::Void button1_Click(System::Object * sender, System::EventArgs * e)
			 {
 
				 this->show("hello");
				 this->Close();
 
			 }

I thought it would be similar to c++ but its not, so how could i create a windows dialog that says hello?

Hi,
If you want to show new dialog, first u have to create another form object. If you want to show the MessageBox, here you go.

private: System::Void button1_Click(System::Object * sender, System::EventArgs * e)
			 {
 
				 MessageBox->show("hello");
				 this->Close();
 
			 }
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.