Click here to Skip to main content
15,898,010 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I made an application for GPA Calculation for college.

It consists of more than 20 FORMS.

Now, I need to add some label & image to all form.

Is it possible to add these label & image in all form.. Without typing in each for separately?



APPLICATION LINK:
http://www.bitsa.in/2013/06/GPACalc.html[^]
Posted
Updated 3-Aug-13 21:21pm
v3
Comments
Mehdi Gholam 4-Aug-13 2:35am    
So, what's the problem?

1 solution

Sure:
C#
Label myLabel = new Label();
myLabel.Text = //...
// docking, layout, location, whatever applies...
myLabel.Parent = someParentControl; // this is the key, this is how actually add a label


Do this for all forms in the question, in a loop, for example.

—SA
 
Share this answer
 
v2
Comments
Joezer BH 4-Aug-13 3:20am    
5ed
Sergey Alexandrovich Kryukov 4-Aug-13 3:35am    
Thank you. :-)
—SA
Aravin.it 4-Aug-13 8:14am    
Thank you..

I will check :)
Sergey Alexandrovich Kryukov 4-Aug-13 12:21pm    
Are you accepting the answer formally (green button)?
—SA
Aravin.it 5-Aug-13 8:24am    
Dear Sir,

I don't understand.

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