|
-
Oct 5th, 2000, 08:24 PM
#1
Thread Starter
Junior Member
I want to create a toolbar ( using the toolbar control in VB 6.0) and place two text boxes for user input on the toolbar. I also want to display caption for these text boxes. These two text boxes appear side by side between some toolbar buttons. Can anyone provide the code?
-
Oct 5th, 2000, 10:11 PM
#2
You can just add buttons with types vbPlaceholder. You can then put the TXBoxes on top. Is that your question or have I misunderstood?
-
Oct 6th, 2000, 12:20 AM
#3
Thread Starter
Junior Member
thanks for the answer, but i think i didn't word my question correctly. I want to do the task at run time(which means through code). Also even though i set the ".Caption" property for the place holder button the Caption is not displayed.
-
Oct 6th, 2000, 07:22 PM
#4
If you want to do that...hold on, let me get VB on-line...
Code:
Private Sub Form_Load()
tb.Buttons.Add [Index], [Key], "See *", 4, 0
End Sub
You should add the KEY and possibly Index, depending on your case.
Now, as for captions...
You cannot add captions to a separator, right? The same goes for a placeholder, but there's a very simple way...use a label in place of it. Draw a label in front of the placeholder. & chr(0)
Got it?
-
Oct 6th, 2000, 08:17 PM
#5
Thread Starter
Junior Member
Thanks,
I'd figured out as much as u have suggested but i was just hoping there's a better way of doing it!!
At least i know now that i was on the right track!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|