|
-
May 5th, 2006, 12:29 PM
#1
Thread Starter
Frenzied Member
[03 & 05] vbTab in Combobox ? ? ? ? ? ?
I'm trying to create a simple two column table in a combo box using vbTab but it just shows as a box char in 03, and shows as a line | in 05.
BTW I really don't want to use 3rd party controls
-
May 5th, 2006, 01:49 PM
#2
Re: [03 & 05] vbTab in Combobox ? ? ? ? ? ?
the standard control simply doesn't support tabs...
what you can do is set a non proportional font (like courier new) and use padright on the string on the left column you want to make.
Limitations of doing things this way are minimal, but they exist.
They include:
1) You must use a nonproportional font as I stated above
2) Your left column text needs to have a cap on its length, and the padright value should be that limit + 1 (to have at least 1 space)
3) when you want to use the values from the columns, you will need to trim them out of the 1 big string with the spaces in the middle
So no major drawbacks to doing it this way (IMO)
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
|