Posted: 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
unoho
Posted: 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
Vertico
Posted: Tue Jan 06, 2009 7:23 pm Post subject: Re: Vb Command Text- Help
xtextBox.text += (whatever your trying to add)
simon66
Posted: 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
Hey dude thnx very much... if you need any help with system hacking fell free to msg me