Home All Groups Group Topic Archive Search About
Author
28 Jun 2006 2:36 PM
NetGoofy
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

Author
28 Jun 2006 2:45 PM
Sanjib Biswas
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
>
Author
28 Jun 2006 3:10 PM
IdleBrain
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.
Author
28 Jun 2006 3:01 PM
guy
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
>
Author
28 Jun 2006 3:05 PM
Herfried K. Wagner [MVP]
"guy" <g**@discussions.microsoft.com> schrieb:
> 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

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.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>