Jump to content
Xtreme .Net Talk

Referencing items in a Tab Control


Recommended Posts

Guest clifgriffin
Posted

Okay...this is driving me crazy. I have a text box named txtDisplay in a Tab Control named TabControl1 on page 2 named Tab2.

 

How do I reference it correctly from the code???

 

I keep getting a "Index and length must refer to a location within the string." error.

 

This is the code I'm currently using..

 

Private Sub DisplayText(ByVal t As String)

txtDisplay.AppendText(t)

End Sub

 

If I move the text box off of the tab control it works...

 

How do I properly reference the text box??

 

Thanks in advance!

 

Clif

Guest clifgriffin
Posted
Me.txtDisplay.AppendText(t)

 

Thanks for the reply! Still doesn't work though. :(

 

I'm using the microsoft example of using tcp sockets with vb.net for a chat.

 

If I drag the text box off of the tab control...it works like a charm!

 

Clif

Guest clifgriffin
Posted

Thanks for the reply. I finally got it fixed.

 

Are you the only one that replies to questions around here? :)

 

Seems like maybe some of these members are missing the concept of a message board.

 

Thanks for your assitance though.

 

Clif

  • *Gurus*
Posted
We actually have quite an extensive group of users that help out on this forum. Unfortunately not many of them have had the chance to become comfortable with .NET. A few of us, including myself and divil, started developing in .NET long before Microsoft was making a big deal about it. We've been using .NET for 8 months now, while others are just being introduced to it.
Guest clifgriffin
Posted

I see...well this site is in my favorites.

 

Cheers!

Clif

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...