|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Label.Text PropertyIs 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. Show quoteHide quote "NetGoofy" <NetGo***@discussions.microsoft.com> wrote in message news:ACAB7CA4-A2B8-45C4-B77C-AD2BEC4757D8@microsoft.com... > 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 > 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. you can use databinding to bind the text property to your data value
(or any other proprty) Show quoteHide quote "NetGoofy" wrote: > 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 > "guy" <g**@discussions.microsoft.com> schrieb: I didn't test it, but in VS 2005 this is maybe possible by binding the > you can use databinding to bind the text property to your data value > (or any other proprty) > > "NetGoofy" wrote: > >> 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 label's 'Text' property to an application setting with user scope without any additional code. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/> |
|||||||||||||||||||||||