windows dialog

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2004
Posts: 489
Reputation: Acidburn is an unknown quantity at this point 
Solved Threads: 5
Acidburn Acidburn is offline Offline
Posting Pro in Training

windows dialog

 
0
  #1
Aug 11th, 2005
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:

  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?
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 47
Reputation: kedar_challa is an unknown quantity at this point 
Solved Threads: 1
kedar_challa's Avatar
kedar_challa kedar_challa is offline Offline
Light Poster

Re: windows dialog

 
0
  #2
Nov 10th, 2005
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:

  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.
  1. private: System::Void button1_Click(System::Object * sender, System::EventArgs * e)
  2. {
  3.  
  4. MessageBox->show("hello");
  5. this->Close();
  6.  
  7. }
Thanks,

KedarNath Challa
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP.NET Forum


Views: 2393 | Replies: 1
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC