enlightenedby42
Supreme [H]ardness
- Joined
- Jan 19, 2005
- Messages
- 4,412
I'm trying to do a really stupid simple little VB program that stores phone book entries in an array and allows you to search the array for an entry (a simple structure with a name, phone, and address as strings) based on the name and display the name,phone and address strings in the text boxes when you find it.
Stupid easy, and it all works fine except for one little quirk...when I try to set the .Text property of the text boxes to the string values within the structures in the array using something to this effect:
the text boxes display the name of the text box CLASS as well as the value within it like this:
So, it is displaying the correct name (some name in this case), but it includes all that weird shit before the string to be displayed in the text box.
This is a stupid lower division class that's completely based around displaying this or that in text boxes and I haven't run into this before. Did I accidentally set an obscure text box property or something? Any suggestions would be much appreciated as this is strange and annoying.
Stupid easy, and it all works fine except for one little quirk...when I try to set the .Text property of the text boxes to the string values within the structures in the array using something to this effect:
Code:
txtName.Text = phoneBook(i).name
Code:
System.Windows.Forms.TextBox, Text: some name
This is a stupid lower division class that's completely based around displaying this or that in text boxes and I haven't run into this before. Did I accidentally set an obscure text box property or something? Any suggestions would be much appreciated as this is strange and annoying.