Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Objects - simple question

Status
Not open for further replies.

SilentWings

Programmer
Apr 24, 2002
27
0
0
PT
Hello ppl,

I’m creating dynamically a winsock. The problem is that it doesn’t respond to then event “_DataArrival”. It is possible that objects created dynamically respond do events? What am I doing wrong.

Your help will be very helpful to me

Tanks very much
 
How are you creating the dynamic control? Are you using a control array? If you choose to battle wits with the witless be prepared to lose.
[machinegun][hammer]

[cheers]
 
Thanks foada to read my question.
The object that I'm trying to create is a Winsock. This object if created dynamically doesn't react to the event _DataArrival.

How can I create this objects in run time and does this objetcs react to events.

Thanks very much

Silent Wings
 
Are you declaring the Winsock object as: -

private object as Winsock

or

private withevents object as Winsock

The second declaration will allow you to trap and respond to events generated by the object.

Andy.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top