Label.Text Property

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to change the Value of a Label.Text Property outside an
Application, such as the contents of a data.txt file or ini file or something
like that.

I would like to be able to change this property without going into VB

Thanks
Goob
 
Yes its possible to set the label based on the property value in a ini file.
But you have to read/parse ini file and set the Label.Text property in the
Form Load() method.
 
you can use databinding to bind the text property to your data value
(or any other proprty)
 
guy said:
you can use databinding to bind the text property to your data value
(or any other proprty)

I didn't test it, but in VS 2005 this is maybe possible by binding the
label's 'Text' property to an application setting with user scope without
any additional code.
 
Hai:
You can add a key in the configuration file: appname.exe.config.
You can set a key for its dynamic property by using the
DynamicProperites option in Properties window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top