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.
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.
Re: Tabstrip and label problem
And don't double-click on the toolbox...
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.
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.
1 Attachment(s)
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.
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.
1 Attachment(s)
Re: Tabstrip and label problem
I didn't make this, but found it at PSC.
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.
Re: Tabstrip and label problem
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.