Click here to Skip to main content
15,917,456 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi

i am using the below code to assign text to label
lb.Text = "ENTER THE FILE CAPTURENAME :";
but when i am runnig the programme it is
taking only ENTER THE FILE this part why..
Posted
Comments
Karthik_Mahalingam 11-Dec-13 0:39am    
post your code
Sergey Alexandrovich Kryukov 11-Dec-13 0:44am    
As a bare minimum: when you say "Label", the question is: which one? Full type name, please...
—SA

set the AutoSize property of that label to True.
 
Share this answer
 
If this is Windows Forms ...

If the Label's 'AutoSize Property is 'true:

1. likely: you have positioned the Label too close to the right edge of its Form or ContainerControl boundaries, so the Text is not visible.

2. unlikely: you have set the MaximumSize.Width property of the Label to a value less than the Label needs to display the full text: so text-wrap is forced, and you have positioned the Label in such a way that it's too near the bottom edge of the Form or ContainerControl boundaries, so the Text is not visible.

If the Label's 'AutoSize Property is 'false:

1. likely: The Label Size.Width is too small to allow the full-text to show.

1.a. likely: The Label is hosted inside a container too small in width for the Text to show.

2. less likely: you have set the Label's MaximumSize.Width to too small a value.

Fix:

1. move the label somewhere in its container so you can be sure its Text is not clipped by being out-of its container's bounds.

2. check to make sure the container is not too small in width.

3. inspect the Label's Size.Width, MaximumSize.Width, and AutoSize Properties and analyze their effects.
 
Share this answer
 
Hi,

Your specifying any length for Label.

if u specify max length remove it and check it once.
 
Share this answer
 
Comments
Karthik_Mahalingam 11-Dec-13 0:44am    
good suggestion..

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