PatRoy Posted October 20, 2004 Posted October 20, 2004 Hi, How can I access a form control, let's say a textbox, within a private shared sub? My situation: I'm learning about Async Sockets (server) and I want to insert the received text by the server in a textbox on my form. I read something about creating a delegate sub, but it wasn't very clear and helpful. So if anyone could help me with this, I would be very :D Thanks. Pat Quote
Mykre Posted October 21, 2004 Posted October 21, 2004 What Language are you using... You could try Raising an event in your socket code and then on the form class catch the event. Quote Hi, How can I access a form control, let's say a textbox, within a private shared sub? My situation: I'm learning about Async Sockets (server) and I want to insert the received text by the server in a textbox on my form. I read something about creating a delegate sub, but it wasn't very clear and helpful. So if anyone could help me with this, I would be very :D Thanks. Pat Quote Glenn "Mykre" Wilson, DirectX MVP Inner Realm Managed DirectX and Game Programming Resources
PatRoy Posted October 21, 2004 Author Posted October 21, 2004 I am using VB.net, and could I have an example of that code please. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.