Click here to Skip to main content
15,917,455 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi
I am try to populate one label with all the other labels text

lblAdditionalBenefits.Text = lblFPC1.Text + lblFPC2.Text + lblFPC3.Text + lblFPC4.Text + lblFPC5.Text;

it does not populate the label that i want to populate
Posted
Comments
[no name] 16-Aug-12 10:35am    
Okay.... so change it to the label you do want to populate then.
Kenneth Haugland 16-Aug-12 10:54am    
So do you mind telling us if its WinForms or WPF or or or ?

1 solution

lblAdditionalBenefits.Content = "sometext" ?
 
Share this answer
 
Comments
[no name] 16-Aug-12 10:36am    
IF it's WPF
Kenneth Haugland 16-Aug-12 10:39am    
Ah... Pure reflex... didnt think WinForms existed for a brief moment :)
[no name] 16-Aug-12 10:45am    
The "momentary insanity" defense only works if you start your sentence with "I wrote this app in VB..."
Kenneth Haugland 16-Aug-12 10:48am    
and then asked a C# question?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900