简体   繁体   中英

DevExpress how to bind a string a to simple TextEdit control?

I have a simple TextEdit control I have dropped onto a form.

I have a class I have created which holds various settings for the application.

How do I bind a member variable of my app settings class to a textedit control?

I wish I could specify that I want it bound to a string, like: public string MyEditBoxValue;

What am I missing?

Thanks.

Try

string setting1 = (string)Settings.Default["MySetting1"];
textEdit1.Text = setting1;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM