Hi, im having trouble with the 2 questions below. I have searched everywer for the answer, but couldnt find it!!!! so if ny1 no's the answer, please help!
Question 1:
I have created a button and a text box, and I want the buttons function to be "onclick, insert ^1 into textbox". how can i do tht
Question 2:
I have created a button and 2 text boxes, and I want the buttons function to be "onclick, copy text from text box 1 and paste it into textbox 2" + some extra text I want to show
e.g. i want "Hello" to be copied from text box 1 and pasted into textbox 2 with "I am saying" text showing before the Hello
I would realli appreciate it if some1 would help!!!

MaskedTextBox Help
champa
Floaf
Thx alot dude...this worked exactly as i wnted....but ther is 1 more thing
u no wen it copis text frm textbox1 n pastes it in textbox 2 I want the text from textbox1 to be played within speech marks...
e.g. seta ui_name "i wnt the text from textbox1 to be pasted here...hw can i do tht "
Steven Hawkes
wt bout my other problem>>
I got question 1 fixed...but question 2 still!!
I want the button onclick to copy the information from maskedtextbox1 and place it into textbox1...it does that...and i want extra text to show up...like you said "i am sayin" and it works...but ther is a slight problem....look below:
I want the text copied from MaskedTextBox1 to be copied and placed into "HERE" in textbox 1....e.g.
seta ui_name "i want the text to show here in between speech marks."
hw do i do tht
mpavlik
Dave,
I found out how to add "^-" on click of button to maskedtextbox without it removin the text that was typed in. the Code is below:
Private
Sub Button22_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button22.Click Me.MaskedTextBox1.Text = "^-" & MaskedTextBox1.Text End SubHowever, The text "^-" is added at the begining in the Masked textbox, for e.g.
I type in Xp0gam3r, and I want the "^-" to show up after the letter r, ut instead, it shows up before the text Xp0gam3r.
Any ideas on how to fix this problem
libyan
thx again dude...but wna i tested the software....i had another problem...wen i click the buttons...they enter the text into the textbox but they rub out wt ws written and paste the code i put in for the button!!! i dnt wnt tht to happen....wt should i do
e.g. I had written Xp0gam3r in the textbox
wen i clicked button...the code "^1" didnt just come up in the text box...but rubbed off Xp0gam3r
so wt ws left in the text box ws ^1...n i dnt wnt tht to happen...!!
Please reply as soon as possible
DOSST
you simply switch them round!
Me.MaskedTextBox1.Text = MaskedTextBox1.Text & "^-
Sarah_
damn man ur gd...lol...thx alot....wt bout my other problem, got an ideas
Deldy
James_Steven
Clipboard
What's wrong with
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MaskedTextBox2.Text = "I am saying " & MaskedTextBox1.Text
End Sub
and why use a masked text box anyway
Or have I lost the plot completely
Pankaj11
If you want quote marks to show you have to use two of them, e.g.
TextBox1.Text =
" ""This is a test"" "Jan Kučera
answer 1)
double click the button to make a click event. Then....
Me.textbox.Text = "^1"
answer 2)
double click button to make a click event. Then....
ClipBoard.SetText(Me.textbox1.Text)
Me.textbox2.AppendText("I am saying " & ClipBoard.GetText())
foolsid
Well, instead of
MaskedTextBox1.Text = "^-" & MaskedTextBox1.Text
just use
MaskedTextBox1.Text = MaskedTextBox1.Text & "^-"
or use appendtext
MaskedTextBox1.AppendText(
"^-")