|
-
May 15th, 2001, 01:40 AM
#1
RichTextBox - TabStrip - Zorder
I have a Tabstrip and a RTB and when I click on the tab I want to show the RTB it gives me an error saying "wrong number of arguments or invalid property assignment" on this line
Code:
RichTextBox1(tabCode.SelectedItem.Index - 1).ZOrder 0
I tried to change it to
Code:
RichTextBox1(tabCode.SelectedItem.Index - 1).Visible = True
but it gives the same error. Is it possible for a RTB to do this or do I not have the code right? Before it was a texbox and I want to change it to a RTB, any suggestions?
Scoutt
-
May 15th, 2001, 01:43 AM
#2
Is the RTB part of a collection?
If not, then you can't addresse it with an index.
-
May 15th, 2001, 01:50 AM
#3
ok it only has one, so if I take out the index then it should work. or if i add more in an array then it will work with the index?
-
May 15th, 2001, 02:04 AM
#4
Thanks for opening my eyes, Index = array DUH 
I got it, I just added another RTB for the array.
Scoutt
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|