Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Vb Command Text- Help
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
simon66




PostPosted: Tue Jan 06, 2009 2:41 pm   Post subject: Vb Command Text- Help

Hey I know im asking some many question but I was wondering how can I add text to a textbox with out erasing whats on it already. Like this is what is on it

"Your ip is:192.168.1.2"

and when i press the command button I want this to be added

"Checking for ip status..."

so everytime I press the command button tht will appear, so in the end I want this to be shown

"Your ip is:192.168.1.2"

I press the button

"Your ip is:192.168.1.2"
"Checking for ip status..."

I press again

"Your ip is:192.168.1.2"
"Checking for ip status..."
"Checking for ip status..."

I tried adding this to the command1

text1.text = "Checking for ip status..."

and also
text1.text.additem "Checking for ip status..."

but it will just over write what ever is in the textbox.

Any help? Thnx
Sponsor
Sponsor
Sponsor
sponsor
unoho




PostPosted: Tue Jan 06, 2009 6:55 pm   Post subject: RE:Vb Command Text- Help

lol... i know the answer of this too!! yayy!!!

so when you click on the button, which is the click event, you type this code:

text1.text = text1.text & "Your Message"

so everytime you add something to the textbox, it will keep the old value of the textbox and add new value, which in this case is "your message"

hope it helps Very Happy
Vertico




PostPosted: Tue Jan 06, 2009 7:23 pm   Post subject: Re: Vb Command Text- Help

xtextBox.text += (whatever your trying to add)
simon66




PostPosted: Tue Jan 06, 2009 11:52 pm   Post subject: Re: RE:Vb Command Text- Help

unoho @ Tue Jan 06, 2009 6:55 pm wrote:
lol... i know the answer of this too!! yayy!!!

so when you click on the button, which is the click event, you type this code:

text1.text = text1.text & "Your Message"

so everytime you add something to the textbox, it will keep the old value of the textbox and add new value, which in this case is "your message"

hope it helps Very Happy


Hey dude thnx very much... if you need any help with system hacking fell free to msg me
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: