469,568 Members | 1,449 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,568 developers. It's quick & easy.

Label.Text Property

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

Jun 28 '06 #1
4 1845
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.

"NetGoofy" <Ne******@discussions.microsoft.com> wrote in message
news:AC**********************************@microsof t.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

Jun 28 '06 #2
guy
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

Thanks
Goob

Jun 28 '06 #3
"guy" <gu*@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/>

Jun 28 '06 #4
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.

Jun 28 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Mateo | last post: by
3 posts views Thread by Patrick.O.Ige | last post: by
1 post views Thread by clintonG | last post: by
1 post views Thread by Steve Hershoff | last post: by
11 posts views Thread by Peter Larsen [] | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.