|
-
Jan 21st, 2000, 08:20 AM
#1
Thread Starter
Hyperactive Member
I do not know how to have one form acess an object on another form.
I need to be able to acess a text box and the mscomm control from my second form, and also from a class.
ie in my class I am trying to manipulate the values of the text box in my main form.
But in neither case does it work.
Why can't I do this?
Is there a way around this?
Am I just coding it wrong?
If one of you wonderful people could show me the error of my ways, I would forever be indebted to you.
-
Jan 21st, 2000, 08:24 AM
#2
From your class or other form you should be able to say something like Form2.Text1.Text = "Hi"
------------------
Marty
Can you buy an entire chess set in a pawn shop?
-
Jan 21st, 2000, 10:39 PM
#3
So Unbanned
isn't it:
Code:
Form1!Text1.Text = "Whatever"
------------------
DiGiTaIErRoR
-
Jan 22nd, 2000, 01:07 AM
#4
Hyperactive Member
No, DigitalError, that is for when you are accessing a database. For just plain forms where you want to access an object on another form, then you would do what Marty said.
------------------
Ryan
-
Jan 22nd, 2000, 01:10 AM
#5
Hyperactive Member
Actually, both ways work. I always do it Digital's way.
------------------
Regards,
Alexander McAndrew
VB Zone
http://gsenterprise.server101.com
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
|