Saturday, March 31, 2012

Setting labels font-bold attribute to True from sub or function?

This should be really easy. How in the world can I set a label's font-bold attribute to TRUE in a sub routine?

lblMyLabel.Font-Bold= True
lblMyLabel.Text = "HELLO!"
lblMyLabel.ForeColor = Drawing.Color.RedJust like you are doing right now?
Label1.Font.Bold = true;

What's acutally going wrong with your code?

0 comments:

Post a Comment