Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

What Language are you using...

 

You could try Raising an event in your socket code and then on the form class catch the event.

 

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

Glenn "Mykre" Wilson, DirectX MVP

Inner Realm

Managed DirectX and Game Programming Resources

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...