Re: UserControl From Module



"madfisher" <madfisher@xxxxxxxxx> wrote in message
news:1168960582.185152.219460@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I have a VB6 project and I am trying to do some multithreading. I have
a module and a user control with all the form elements. I was wonder
how I can access the elements of the UserControl from my module. Since
it's not a form, there doesn't seem to be any direct access. I'm using
the AddressOf function to call my method in my module from my
UserControl, but I need the module to update a field in the user
control.

Any help would be apprieciated.

Marcus de Leon

The UserControl is running? In IE? Where ever, what you'll have to do is
pass information to that module to enable it to "know" how to communicate
with that specific instance of a UserControl.... which brings up another
question. If you're using AddressOf, you realize you can only have one
instance of that control "hooked" at any given time, right?

The only multithreading VB Classic supports is through the use of ActiveX
exe's (out of process servers) so anything you may be doing has probably
been tried 10 dozen times already.

--
Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm


.