| | |
Can't do the aligment "label" and "list box's string"
![]() |
•
•
Join Date: Oct 2007
Posts: 95
Reputation:
Solved Threads: 0
Hi,
Could anyone give me some suggestions? Now, I want to put the labels beside the list box to show the number of string lines, but i cant' do adjust all between string lines and labels although the size of text are same. You all will know the smallest size of text is '8'.
how should I do it?
Regards,
zawpai
Could anyone give me some suggestions? Now, I want to put the labels beside the list box to show the number of string lines, but i cant' do adjust all between string lines and labels although the size of text are same. You all will know the smallest size of text is '8'.
how should I do it?
Regards,
zawpai
Hi zawpai,
Sorry for the misunderstanding. To Align the label, you must know the each position of the items in the listbox. but it cannot get in VB (I think). For this you must use APIs.
Another idea is why dont use again listbox instead of Labels. Set the background for labels to form background
Sorry for the misunderstanding. To Align the label, you must know the each position of the items in the listbox. but it cannot get in VB (I think). For this you must use APIs.
Another idea is why dont use again listbox instead of Labels. Set the background for labels to form background
KSG
Hi,
Why use API's..?
Just Populate List Box with Serial Numbers and List Items.....
Use "Courier New Font" (Uni-distant font) for the List Box..
and check this :
Regards
Veena
Why use API's..?
Just Populate List Box with Serial Numbers and List Items.....
Use "Courier New Font" (Uni-distant font) for the List Box..
and check this :
vb Syntax (Toggle Plain Text)
List1.AddItem "1" & Space(3) & "ABC" List1.AddItem "2" & Space(3) & "DEF" List1.AddItem "3" & Space(3) & "TTT" List1.AddItem "4" & Space(3) & "OERI"
Regards
Veena
Last edited by QVeen72; Jun 11th, 2008 at 4:32 am.
•
•
Join Date: Oct 2007
Posts: 95
Reputation:
Solved Threads: 0
Hi QVeen72,
Your suggestions is good, but I don't want to put any extra string in my List box because that the text shown in listbox will be related with the whole project. If I change something in list box, I need to change the whole program. So, I just put the label beside it.
That's why I got the problem.
Is there any way to adjust the string size of the list box?
Thanks,
zawpai
Your suggestions is good, but I don't want to put any extra string in my List box because that the text shown in listbox will be related with the whole project. If I change something in list box, I need to change the whole program. So, I just put the label beside it.
That's why I got the problem.
Is there any way to adjust the string size of the list box?
Thanks,
zawpai
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Re : charts
- Next Thread: detecting a keystroke?
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





