Edit TextBox from another class

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

    #1

    Edit TextBox from another class

    Hello All,
    Sorry for the newbie question, but here goes:
    I have a form named MainForm (namespace=MyFo rmProject,
    class=MainForm) . In that form is a textbox tbOutput.
    This is a multi-line textbox that I want to send values to.
    I then have another function named ReadData
    (namespace=Othe rName, class=OtherClas s). I have a while
    loop that reads data and I want this function to be able
    to AppendText to the tbOutput textbox. I can't seem to
    find a valid way to do this.
    Any help would be greatly appreciated.
    Thanks in advance.
    -Tim
  • Champika Nirosh

    #2
    Re: Edit TextBox from another class

    Hi,

    I think you can do it by passing a reference of the main form to the child
    class and use that reference to do the modification to the textbox.

    Make sure to set the Textbox Modifiers property to Internal or public

    Nirosh.

    "Tim" <timon34@rocket mail.com> wrote in message
    news:04ff01c3ae dc$e6ade4e0$a10 1280a@phx.gbl.. .[color=blue]
    > Hello All,
    > Sorry for the newbie question, but here goes:
    > I have a form named MainForm (namespace=MyFo rmProject,
    > class=MainForm) . In that form is a textbox tbOutput.
    > This is a multi-line textbox that I want to send values to.
    > I then have another function named ReadData
    > (namespace=Othe rName, class=OtherClas s). I have a while
    > loop that reads data and I want this function to be able
    > to AppendText to the tbOutput textbox. I can't seem to
    > find a valid way to do this.
    > Any help would be greatly appreciated.
    > Thanks in advance.
    > -Tim[/color]


    Comment

    Working...