Results 1 to 2 of 2

Thread: TabStrip and Print

  1. #1

    Thread Starter
    Hyperactive Member Asaf_99's Avatar
    Join Date
    Jul 2000
    Location
    Israel
    Posts
    335

    Unhappy

    And again, I have a problem!
    I need to know how to use a TabStrip.
    How do I make something "Attached" to one of the tabs, and make them work.

    And second, I want to know how can I print all the data in a listbox and a textbox.
    It should be like this in the printed page:

    <Text1.text>

    <an item from List1>
    <an item from List1>
    <an item from List1>
    <an item from List1>
    <an item from List1>

    and so on.
    Asaf Sagi

    ICQ: 61917199
    E-Mail: [email protected]

  2. #2
    Guest
    Add a TabStrip and use the (Custom) and then change the name and add a new tab with a name than click ok and then use a picture box and put what you want in it. Than set the visible properties when a new tab is clicked.

    Code:
    Private Sub TabStrip1_Click()
    If (TabStrip1.SelectedItem.Index) = 1 Then Text1.Visible = True: Label1.Visible = False: Text1.text = "Tab 1 was clicked, Text1 is now visible, but Label1 is not visible."
    If (TabStrip1.SelectedItem.Index) = 2 Then Text1.Visible = False: Label1.Visible = True: Label1.Caption = "Tab 2 was clicked, Text1 is not visible, but Label1 is now visible."
    End Sub
    And for your second question. Printing:

    Code:
    Printer.Print Text1.text
    For i = 0 To List1.ListCount - 1
    Printer.Print List1.List(i)
    Next i
    Printer.EndDoc

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