开发者

Setting the value of a Label? [duplicate]

开发者 https://www.devze.com 2023-03-07 19:44 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: How to add text to a WPF Label in code?
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

精彩评论

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