Results 1 to 4 of 4

Thread: RichTextBox - TabStrip - Zorder

  1. #1
    scoutt
    Guest

    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

  2. #2
    AIS_DK
    Guest
    Is the RTB part of a collection?

    If not, then you can't addresse it with an index.

  3. #3
    scoutt
    Guest
    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?

  4. #4
    scoutt
    Guest
    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
  •  



Click Here to Expand Forum to Full Width