Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
hi
the form have only one label and button, when clicking of button the shows a message box
that is having location of label .....

i need the location ( point ) of label at runtime that is possible ??

thanks
Posted
Comments
ZurdoDev 4-Nov-13 11:22am    
Sure. Is this windows forms or asp.net? Where are you stuck?
BillWoodruff 4-Nov-13 11:28am    
The location of the Label in Form co-ordinates, or screen co-ordinates ?
Sergey Alexandrovich Kryukov 4-Nov-13 12:24pm    
Why doing so?
When you say "Label", the question is: which one? Full type name, please.
You always need to tag the UI library/framework or application type, if UI is concerned.
—SA
An@nd Rajan10 5-Nov-13 11:58am    
windows form application

1 solution

Try:
C#
MessageBox.Show(myLabel.Location.ToString());
 
Share this answer
 

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