|
-
Nov 15th, 2001, 12:35 PM
#1
Thread Starter
Junior Member
-
Nov 15th, 2001, 12:36 PM
#2
VB Code:
Private Sub Command1_Click()
Text1.Text = ""
End Sub
-
Nov 15th, 2001, 12:41 PM
#3
Thread Starter
Junior Member
Run Time error :-/
I put in the code just as you wrote it, when I pressed that button, I would get the following error:
Run-Time error '424':
Object Required.
-
Nov 15th, 2001, 12:43 PM
#4
Frenzied Member
you have to put a textbox on your form
-
Nov 15th, 2001, 12:44 PM
#5
Thread Starter
Junior Member
Why?
I'm not printing text on a text box, I'm printing it to the form, is there no way to clear the text from the form, will it only work in a text box?
-
Nov 15th, 2001, 12:46 PM
#6
Frenzied Member
its impossible to put just plain text on a form you have to have some control
-
Nov 15th, 2001, 12:47 PM
#7
-
Nov 15th, 2001, 12:48 PM
#8
Thread Starter
Junior Member
It's not impossible, I'm doing it. I have a form, and a command button, I have my command button set to the following:
Private Sub cmdClick_Click()
Print "Testing"
End Sub
When I run the program, I click the button and it prints the text on the form.
-
Nov 15th, 2001, 12:49 PM
#9
Frenzied Member
o ok sry...you know you could use a msgbox 2
-
Nov 15th, 2001, 12:50 PM
#10
Cls will clear the form of all text printed on it.
-
Nov 15th, 2001, 12:51 PM
#11
Thread Starter
Junior Member
Hack solved it :)
Hack Solved my problem. Thanks
I didn't know you could use .cls :-/
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
|