Click here to Skip to main content
15,901,283 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Problem to communicate between forms Pin
roshihans14-Mar-09 17:33
roshihans14-Mar-09 17:33 
GeneralRe: Problem to communicate between forms Pin
N a v a n e e t h15-Mar-09 5:14
N a v a n e e t h15-Mar-09 5:14 
GeneralRe: Problem to communicate between forms Pin
roshihans15-Mar-09 18:12
roshihans15-Mar-09 18:12 
QuestionDelegates for instance methods between AppDomains... Pin
MrBhbk11-Mar-09 10:28
MrBhbk11-Mar-09 10:28 
QuestionSingle Textbox EventHandler for all Pin
Badboy22TR9-Mar-09 14:23
Badboy22TR9-Mar-09 14:23 
AnswerRe: Single Textbox EventHandler for all Pin
ky_rerun10-Mar-09 5:00
ky_rerun10-Mar-09 5:00 
AnswerRe: Single Textbox EventHandler for all Pin
Badboy22TR10-Mar-09 12:07
Badboy22TR10-Mar-09 12:07 
QuestionUpdating a label's text automatically? (New programmer) Pin
TabascoSauce9-Mar-09 12:50
TabascoSauce9-Mar-09 12:50 
Thanks for looking at my question! I am a fairly new programmer, so please bear with me.

I am trying to make a program that takes the user-inputted values from 3 text boxes, adds them together, then displays the total as a label that I placed next to the boxes in real time-(as in the number updates automatically every time the number in one of the text boxes is changed). Also, how do I make sure the value that is inputted is only numbers?

Ok, here is what I have got so far. Obviously it doesn't work because I am asking this question.
north1, north2, and north3 are the three text boxes and northT is the label next to them. The rest is pretty easy to understand from the code.

private: System::Void northT_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			 //Variables
			 double nTotal = 0.0;
			 double n1 = 0.0;
			 double n2 = 0.0;
			 double n3 = 0.0;

			 do
			 {
				 n1 = Convert::ToDouble(north1->Text);
				 n2 = Convert::ToDouble(north2->Text);
				 n3 = Convert::ToDouble(north3->Text);
				 nTotal = n1 + n2 + n3;
				 northT->Text = nTotal.ToString();
			 } while(nTotal > 0);
		 }



Again, thanks for looking, and any help will be greatly appreciated.
GeneralRe: Updating a label's text automatically? (New programmer) Pin
Luc Pattyn9-Mar-09 13:09
sitebuilderLuc Pattyn9-Mar-09 13:09 
GeneralRe: Updating a label's text automatically? (New programmer) Pin
TabascoSauce9-Mar-09 14:10
TabascoSauce9-Mar-09 14:10 
QuestionInt64 minus.... Pin
Thilek8-Mar-09 6:46
Thilek8-Mar-09 6:46 
AnswerRe: Int64 minus.... Pin
Mark Salsbery8-Mar-09 9:19
Mark Salsbery8-Mar-09 9:19 
AnswerRe: Int64 minus.... Pin
Dave Doknjas8-Mar-09 13:56
Dave Doknjas8-Mar-09 13:56 
Question(C++/CLI) "FileNotFoundException" raised in "Activator::GetObject()" method of Remoting programming Pin
zkii4-Mar-09 3:08
zkii4-Mar-09 3:08 
AnswerRe: (C++/CLI) "FileNotFoundException" raised in "Activator::GetObject()" method of Remoting programming Pin
led mike4-Mar-09 4:41
led mike4-Mar-09 4:41 
GeneralRe: (C++/CLI) "FileNotFoundException" raised in "Activator::GetObject()" method of Remoting programming Pin
zkii4-Mar-09 16:54
zkii4-Mar-09 16:54 
GeneralRe: (C++/CLI) "FileNotFoundException" raised in "Activator::GetObject()" method of Remoting programming Pin
led mike5-Mar-09 4:28
led mike5-Mar-09 4:28 
GeneralRe: (C++/CLI) "FileNotFoundException" raised in "Activator::GetObject()" method of Remoting programming Pin
zkii5-Mar-09 16:02
zkii5-Mar-09 16:02 
GeneralRe: (C++/CLI) "FileNotFoundException" raised in "Activator::GetObject()" method of Remoting programming Pin
led mike6-Mar-09 4:47
led mike6-Mar-09 4:47 
QuestionStreamReader delimiters in C++/CLI Pin
J_E_D_I3-Mar-09 22:14
J_E_D_I3-Mar-09 22:14 
AnswerRe: StreamReader delimiters in C++/CLI Pin
ky_rerun5-Mar-09 6:50
ky_rerun5-Mar-09 6:50 
AnswerRe: StreamReader delimiters in C++/CLI Pin
dybs6-Mar-09 17:58
dybs6-Mar-09 17:58 
QuestionRe: StreamReader delimiters in C++/CLI Pin
J_E_D_I16-Mar-09 7:06
J_E_D_I16-Mar-09 7:06 
AnswerRe: StreamReader delimiters in C++/CLI Pin
dybs16-Mar-09 13:21
dybs16-Mar-09 13:21 
GeneralRe: StreamReader delimiters in C++/CLI Pin
J_E_D_I25-Mar-09 11:19
J_E_D_I25-Mar-09 11:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.