Click here to Skip to main content
15,906,558 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i just want to show asterisk sign followed by label to show required field in windows form.

help me out plz..
Posted
Comments
ZurdoDev 6-Jun-14 13:31pm    
Where are you stuck? Add another label.
Member 9671810 6-Jun-14 14:21pm    
oh yeah.. :) but tablelayout does not allow 2 tools ata time..:(
gggustafson 6-Jun-14 14:37pm    
What tablelayout? Where was that in your question? So some code that demonstrates your problem.
Philippe Mori 6-Jun-14 19:58pm    
Add another column to the table layout (and adjust span in other row if necessary) or put a panel, a flow layou or another table Inside the cell then you will be able to have both. Nothing complicate.
Member 9671810 6-Jun-14 14:44pm    
tablelayoutpanel in windows form.. i don't have any code. i want code.

1 solution

Just add another Label beside the first Label and set its text property to "*".
 
Share this answer
 
Comments
Member 9671810 6-Jun-14 14:24pm    
but can i add 2 tools at a time in tablelayoutpanel
Tools, what are they?
If you have problems adding two Labels, then simply add the asterisk to the first Label like...

"User Name *"

Just assign the Text to a Label with a asterisk as the last character. That's it. :)
Member 9671810 6-Jun-14 14:55pm    
yeah but it won't color red
Then go for two Labels.

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