Results 1 to 3 of 3

Thread: How to create a Image Index for a TabPage Control composed of 6 tabs

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    376

    How to create a Image Index for a TabPage Control composed of 6 tabs

    Does anyone know how to create a Image Index for a TabPage Control composed of 6 tabs. I need to place a small image right before the Tab Text.

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    i put an answer that might help you on the dotnet forum
    hope this is what you mean :
    VB Code:
    1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2.  
    3.         Dim x As Integer
    4.  
    5.         For x = 0 To Me.TabControl1.TabCount - 1
    6.             Me.TabControl1.TabPages(x).ImageIndex = x '/// assuming you have 6 images in an imagelist.
    7.         Next
    8.  
    9.     End Sub
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2003
    Posts
    376

    Thumbs up

    dynamic_sysop:


    Thank you very much thats the code i was looking for.!!!

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