|
-
Jun 9th, 2000, 09:14 AM
#1
Thread Starter
Lively Member
I've created a form named Form1 which contains: 1 textbox.
a form named form2 which contains: 1 textbox, 1 command button.
and i made a copy of Form1 through the sub function below:
Sub NewForm1()
Dim NewForm1 as Form1
Set NewForm1 = new Form1
NewForm1.show
end Sub
and i want a to send a text line from Form2's textbox when pressed enter to the textbox in the form created with the above function. How do i do that?
Helps are very, very, appreciated.
-
Jun 9th, 2000, 09:38 AM
#2
Code:
Newform1.text1.text = "New form's text"
Is that what you mean?
-
Jun 9th, 2000, 10:00 AM
#3
Thread Starter
Lively Member
Nope
The code you gave me i've tried many times, and it gives me error: it said object not found.
-
Jun 9th, 2000, 10:17 AM
#4
In order to use text1 on the new form, the textbox must already be there.
Try this:
Code:
Dim F as New Form1
F.Show
F.text1.text = "New Form Text"
Hope that works.
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
|