943,963 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2484
  • ASP.NET RSS
Aug 11th, 2005
0

windows dialog

Expand Post »
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:

ASP.NET Syntax (Toggle Plain Text)
  1. private: System::Void button1_Click(System::Object * sender, System::EventArgs * e)
  2. {
  3.  
  4. this->show("hello");
  5. this->Close();
  6.  
  7. }

I thought it would be similar to c++ but its not, so how could i create a windows dialog that says hello?
Similar Threads
Reputation Points: 12
Solved Threads: 5
Posting Pro
Acidburn is offline Offline
510 posts
since Dec 2004
Nov 10th, 2005
0

Re: windows dialog

Quote originally posted by Acidburn ...
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:

ASP.NET Syntax (Toggle Plain Text)
  1. private: System::Void button1_Click(System::Object * sender, System::EventArgs * e)
  2. {
  3.  
  4. this->show("hello");
  5. this->Close();
  6.  
  7. }

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.
ASP.NET Syntax (Toggle Plain Text)
  1. private: System::Void button1_Click(System::Object * sender, System::EventArgs * e)
  2. {
  3.  
  4. MessageBox->show("hello");
  5. this->Close();
  6.  
  7. }
Reputation Points: 10
Solved Threads: 1
Light Poster
kedar_challa is offline Offline
47 posts
since Nov 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: How to auto increment?
Next Thread in ASP.NET Forum Timeline: Long ado net question but urgent help required





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC