Results 1 to 11 of 11

Thread: Tabstrip and label problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    476

    Tabstrip and label problem

    Hello,

    I am very very new to VB. I just installed VB6 professional on my computer where I am using XP home edition and having some problem defining my first form.

    I am trying to use TabStrip and then some text boxes with labels by them. I am able to bring and show all kinds of different things on the tabstrip eccept the lables. Lables always go into the background of the tabstrip. I tried changing the properties to come in foreground and all I could think of but no success.

    Same thing is happening with the Frame, I can't show any label on the frame but text boxes, combo boxes everthing comes fine.

    Any and all help will be greatly appreciated.

    Thanks in advance,
    Kamahl.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Tabstrip and label problem

    Welcome to VBF.

    You will find that you have to draw the control on the frame or tabstrip directly.
    You may be able to copy/paste after you click on the frame, I forget.

    Don't drag them.

  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Tabstrip and label problem

    And don't double-click on the toolbox...
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    476

    Re: Tabstrip and label problem

    Hi again,

    Guys thanks a lot for such a quick reply. I am very sorry to say that none of the tricks mentioned so far resolved the problem

    I don't know if there is any other way of showing some kind of text beside the text box to tell a user what to enter in the text box.

    Please let me know if there is any alternate way of accomplishing this task.

    Regards,
    Kamahl.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    476

    Re: Tabstrip and label problem

    Hi guys,

    Well some how when I directly drew on the frame it is working , good news. But still it is not working on the TabStrip. I would prefer to use the TabStrip if there is any other trick for the label to show on it or any other control in which I can show the text (label) for any text box or a combobox.

    Once again thanks a lot for all your kind help.

    Kamahl.

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Tabstrip and label problem

    Try this. I made a frame, and then dragged the textbox size. when i released the mouse button, it was in the frame. same with the label. it works fine.
    Attached Files Attached Files

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    476

    Re: Tabstrip and label problem

    Great dglienna, thanks.

    Can you give any sample for the same thing using TabStrip? Please, Please, prety please.

    Thanks,
    Kamahl.

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Tabstrip and label problem

    I didn't make this, but found it at PSC.
    Attached Files Attached Files

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    476

    Re: Tabstrip and label problem

    Thanks once again dglienna. I got the idea now as to how to show lables on a Tabstrip.

    Appreciate all your help, Kamahl.

  10. #10
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Tabstrip and label problem

    Glad to help!

  11. #11

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    476

    Re: Tabstrip and label problem

    Hello dglienna,

    I have another very basic question. I have a tabstrip with 5 tabs. I have defined 5 different forms (form1, form2, form3 etc.). When I am trying to write the code to show different forms when tab0, tab1, tab2 etc. is clicked it always takes me to the following code;

    Private Sub TabStrip1_Click()

    End Sub

    How can I determine which tab is clicked so I can load the right form? Please bear with me cuz I just started to learn the VB, LOL.

    Thanks again for your prompt reply.

    Kamahl.

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