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

Managed C++/CLI

 
AnswerRe: When prefer to write managed C++ code ? Pin
Mark Salsbery25-Feb-09 14:30
Mark Salsbery25-Feb-09 14:30 
AnswerRe: When prefer to write managed C++ code ? Pin
N a v a n e e t h25-Feb-09 14:40
N a v a n e e t h25-Feb-09 14:40 
QuestionBoolean property causing crash Pin
Andy____________uk24-Feb-09 1:35
Andy____________uk24-Feb-09 1:35 
GeneralRe: Boolean property causing crash Pin
Luc Pattyn24-Feb-09 1:42
sitebuilderLuc Pattyn24-Feb-09 1:42 
GeneralRe: Boolean property causing crash Pin
Andy____________uk24-Feb-09 2:01
Andy____________uk24-Feb-09 2:01 
GeneralRe: Boolean property causing crash Pin
Luc Pattyn24-Feb-09 2:33
sitebuilderLuc Pattyn24-Feb-09 2:33 
GeneralRe: Boolean property causing crash Pin
Andy____________uk24-Feb-09 3:01
Andy____________uk24-Feb-09 3:01 
QuestionConverting int to string confusion Pin
TabascoSauce23-Feb-09 15:33
TabascoSauce23-Feb-09 15:33 
I've been working my way out of the console apps and I am now trying to learn how to use windows forms in visual studio 2008.

Anyway, onward to the question.

I am trying to display a numerical value as text in a label on a windows form. I looked around for an answer on the internet and I found some, but I couldn't get them to work for me. So I decided to start from scratch and just ask this forum for help.

Here's the section of code I'm dealing with, I bolded my problem areas.
Oh and to avoid confusion, click this: http://img100.imageshack.us/img100/4479/form1w.jpg. Its a picture of my form with all of the variables and etc labeled.
private: System::Void numberDisp_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			 numberDisp->Text = ticketNumber->Value
		 }
private: System::Void priceDisp_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			 //Variable
			 int tickNum = 0;
			 double price = 0;

			 //Get # of tickets
			 tickNum = ticketNumber->Value;
			 
			 //Calculate Price
			 if (locB->Checked == true)
			 {
				 price = tickNum * 75;
			 }
			 if (locP->Checked == true)
			 {
				 price = tickNum * 30;
			 }
			 if (locL->Checked == true)
			 {
				 price = tickNum * 21;
			 }

			 //Display Price
			 priceDisp->Text = price;
		 }

GeneralRe: Converting int to string confusion Pin
Luc Pattyn23-Feb-09 16:07
sitebuilderLuc Pattyn23-Feb-09 16:07 
QuestionC++/CLI -- Where to declare pre-selected list box and radio button attributes? Pin
J_E_D_I22-Feb-09 7:53
J_E_D_I22-Feb-09 7:53 
AnswerRe: C++/CLI -- Where to declare pre-selected list box and radio button attributes? Pin
Mark Salsbery22-Feb-09 18:22
Mark Salsbery22-Feb-09 18:22 
GeneralRe: C++/CLI -- Where to declare pre-selected list box and radio button attributes? Pin
J_E_D_I23-Feb-09 9:49
J_E_D_I23-Feb-09 9:49 
QuestionAVI to BMP Frames Pin
santoshsb06121-Feb-09 8:45
santoshsb06121-Feb-09 8:45 
AnswerRe: AVI to BMP Frames Pin
Mark Salsbery22-Feb-09 18:26
Mark Salsbery22-Feb-09 18:26 
QuestionFunctions Pin
Visiolizer21-Feb-09 6:54
Visiolizer21-Feb-09 6:54 
AnswerRe: Functions Pin
Eytukan22-Feb-09 19:55
Eytukan22-Feb-09 19:55 
AnswerRe: Functions Pin
Gary R. Wheeler23-Feb-09 11:53
Gary R. Wheeler23-Feb-09 11:53 
GeneralRe: Functions Pin
Luc Pattyn23-Feb-09 12:30
sitebuilderLuc Pattyn23-Feb-09 12:30 
QuestionTwo problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
regnwald16-Feb-09 18:19
regnwald16-Feb-09 18:19 
AnswerRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
N a v a n e e t h16-Feb-09 19:43
N a v a n e e t h16-Feb-09 19:43 
GeneralRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
regnwald17-Feb-09 13:10
regnwald17-Feb-09 13:10 
GeneralRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
N a v a n e e t h17-Feb-09 14:45
N a v a n e e t h17-Feb-09 14:45 
GeneralRe: Two problems - (a) HOW TO: pointer to an EXISTING user-defined type (b)HOW: lost form design window Pin
regnwald17-Feb-09 19:00
regnwald17-Feb-09 19:00 
QuestionMysql Remote login Pin
Thilek16-Feb-09 1:57
Thilek16-Feb-09 1:57 
AnswerRe: Mysql Remote login Pin
ky_rerun24-Feb-09 15:06
ky_rerun24-Feb-09 15:06 

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.