Label.Text Property

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • NetGoofy

    #1

    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

  • Sanjib Biswas

    #2
    Re: Label.Text Property

    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" <NetGoofy@discu ssions.microsof t.com> wrote in message
    news:ACAB7CA4-A2B8-45C4-B77C-AD2BEC4757D8@mi crosoft.com...[color=blue]
    > 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
    >[/color]


    Comment

    • guy

      #3
      RE: Label.Text Property

      you can use databinding to bind the text property to your data value
      (or any other proprty)

      "NetGoofy" wrote:
      [color=blue]
      > 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
      >[/color]

      Comment

      • Herfried K. Wagner [MVP]

        #4
        Re: Label.Text Property

        "guy" <guy@discussion s.microsoft.com > schrieb:[color=blue]
        > you can use databinding to bind the text property to your data value
        > (or any other proprty)
        >
        > "NetGoofy" wrote:
        >[color=green]
        >> 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[/color][/color]

        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/>

        Comment

        • IdleBrain

          #5
          Re: Label.Text Property

          Hai:
          You can add a key in the configuration file: appname.exe.con fig.
          You can set a key for its dynamic property by using the
          DynamicProperit es option in Properties window.

          Comment

          Working...