Guest clifgriffin Posted October 17, 2002 Posted October 17, 2002 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 Quote
*Gurus* Derek Stone Posted October 17, 2002 *Gurus* Posted October 17, 2002 Me.txtDisplay.AppendText(t) Quote Posting Guidelines
Guest clifgriffin Posted October 17, 2002 Posted October 17, 2002 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 Quote
*Gurus* Derek Stone Posted October 18, 2002 *Gurus* Posted October 18, 2002 Without modifying any code I moved a TextBox on and off a TabPage. On either container the above code worked just fine. I have a feeling there's another error in your code somewhere. Quote Posting Guidelines
Guest clifgriffin Posted October 18, 2002 Posted October 18, 2002 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 Quote
*Gurus* Derek Stone Posted October 18, 2002 *Gurus* Posted October 18, 2002 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. Quote Posting Guidelines
Guest clifgriffin Posted October 18, 2002 Posted October 18, 2002 I see...well this site is in my favorites. Cheers! Clif 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.