VB.NET Editting a variable

Discussion in 'Visual Basic ( VB )' started by deprem88, Nov 23, 2011.

  1. deprem88

    deprem88 New Member

    Joined:
    Sep 2, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hi all, I would like to thank all in advance for helping me. I am new to VB.NET so I need some help.

    I have a code where I call a sub that appends text to a text box after which other codes also append text but once an instance has occurred I want one of the appended text by the sub to be updated but it must stay where it is, at the top of all text. Can someone show me a way of accomplishing this?

    Basically...

    Code
    ...
    Public Sub CheckTitle()
    If txtTextBox.Text = "" Then
    txtTextBox.AppendText(trjTitle & Environment.NewLine & trjNumber & Environment.NewLine)
    End If
    End Sub
    ...
    ...
    Code that appends text
    ...
    Public Sub CheckTitle()
    If txtTextBox.Text = "" Then
    txtTextBox.AppendText(trjTitle & Environment.NewLine & trjNumber & Environment.NewLine)
    End If
    End Sub
    ...
    ...
    etc.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice