开发者

Setting the value of a Label? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How to add text to a WPF Label in code?

I need set the value of a Label like this:

开发者_如何学Cmessagelb = "Generating file..."

I try with messagelb.Text and messagelb.TextIput

but not work.

how can I do this?


in wpf

messagelb.Content = "Generating file...";


If you are using WPF you need to set the Content property.

Edit:

messagelb.Content = "your text...";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜