Click here to Skip to main content
15,895,779 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I added an image to a label in c# but unable to adjust to the centre thereby part of the image is only visible .Could some one help me out .....Thanks in Advance
Posted

1 solution

Set AutoSize to false, then drag the label to a suitable size.
The Label control defaults to an ImageAlign of MiddleCenter so it should automatically place the image in the middle.
 
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