|
-
Jun 15th, 2000, 10:13 AM
#1
Thread Starter
Addicted Member
I Have tried and tried to make this simple program just
change the text in a textbox with one command button..but i am out of ideas..and i dont know too much about vb to try functions or moduels.It seems so simple to figure out...but yet i cant..
I have a text box and one command button.....i want to be bale to change the text message when i click the command button....
I have tried suggestions that many members here have gave me...like making a pause moduel...but that would do it..but it isnt how i want to do it.
Select case doesnt work either..Or If then's either..
I can get my idea to work to change one message to another but then i am out of ideas...here is my code again..
Private Sub Form-load()
Text1.Text = "Message" 'displays the message when it runs
End Sub
Private Sub Command1_Click()
Dim Message1 As String
Message1 = "Whatever" 'this displays 2 message just fine
Text1.Text = Message1
End Sub
BUT!! as soon as i try to place something like
Text1.Text = " " To clear the textbox in the same command1 code..and then if i run the program and i click the command button
it erases the message and i am stuck!!!!
Is there any code that i can use to display the second message and then still clear the message and display another message with one command button????????????????
I dont want to have to use a timer for a little form like this...i dont think it is called for i think there is something else i could use..
Any help would be greatly appreciated...even if you tell me i cant make this with out a function or something .
Thank you.
NeWbIe vbeer6.0()
Working model editon...haha!!!!
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|