changing label text with multi use buttons
is there a way to change text in a label using a button that set it as one thing?:confused:
i.e.:
Button_Click()
label.caption = "blah" & form1.text1.text & "blah"
what i want to do is make it so that when i change the text in the box the caption changes.
from: blah hi blah
to blah bye blah
using the same buton
how do i do that?
please respond asap!!
Re: changing label text with multi use buttons
Quote:
Originally posted by sonyc
is there a way to change text in a label using a button that set it as one thing?:confused:
i.e.:
Button_Click()
label.caption = "blah" & form1.text1.text & "blah"
what i want to do is make it so that when i change the text in the box the caption changes.
from: blah hi blah
to blah bye blah
using the same buton
how do i do that?
please respond asap!!
I'm not sure I get it.
You want to type text into a text box. Click a button and have the caption of a label change to include the text you typed.
Is that right?
If so, then you got the code right, in the click event of the button, add the codeto change the caption of the label.
didnt do what i wanted to do
the code that you gave me did what i had done before.
the file is exactly what i want to do except that i am using 2 forms, not one