Page 1 of 1

help me

Posted: Thu Dec 13, 2012 9:19 am
by Shim
hello guys :)

i have a textbox and a button and a richtextbox so i have a lot text on richtextbox for example

PageGate is an SMS messaging server application that sends SMS and text messages to: mobile phones, cell phones and other wireless devices. Messages can be sent a variety of different ways including: networked computers, e-mail, Internet web pages, commandline executables, text files, a serial port, and from within other applications. Messages can be sent to the telecom provider via: the Internet (SNPP, WCTP, SMTP), modems (TAP, UCP, GSM, TONE), or direct serial connections (TAP).


so i want PageGate to replaced by textbox text when i put some text on textbox and click on button

how can i do this ?

Re: help me

Posted: Thu Dec 13, 2012 10:36 am
by Filip
mshimranpro wrote:
hello guys :)

i have a textbox and a button and a richtextbox so i have a lot text on richtextbox for example

PageGate is an SMS messaging server application that sends SMS and text messages to: mobile phones, cell phones and other wireless devices. Messages can be sent a variety of different ways including: networked computers, e-mail, Internet web pages, commandline executables, text files, a serial port, and from within other applications. Messages can be sent to the telecom provider via: the Internet (SNPP, WCTP, SMTP), modems (TAP, UCP, GSM, TONE), or direct serial connections (TAP).


so i want PageGate to replaced by textbox text when i put some text on textbox and click on button

how can i do this ?
Code: Select all
Private Sub ReplaceText() Handles {button}.click
Dim promoText as string="PageGate is an SMS messaging server application that sends SMS and text messages to: mobile phones, cell phones and other wireless devices. Messages can be sent a variety of different ways including: networked computers, e-mail, Internet web pages, commandline executables, text files, a serial port, and from within other applications. Messages can be sent to the telecom provider via: the Internet (SNPP, WCTP, SMTP), modems (TAP, UCP, GSM, TONE), or direct serial connections (TAP)."
{richtextbox}.text = promoText.replace("PageGate", {textbox}.text).toString

End Sub
I think this should work. Replace {something} with controls.
I'm not on my computer so this is not tested.