•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 401,485 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,240 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 516 | Replies: 8
![]() |
•
•
Join Date: Oct 2007
Posts: 85
Reputation:
Rep Power: 0
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
•
•
Join Date: Feb 2008
Location: Sivakasi, Tamilnadu, India
Posts: 396
Reputation:
Rep Power: 1
Solved Threads: 67
•
•
Join Date: Feb 2008
Location: Sivakasi, Tamilnadu, India
Posts: 396
Reputation:
Rep Power: 1
Solved Threads: 67
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 3:32 am.
•
•
Join Date: Oct 2007
Posts: 85
Reputation:
Rep Power: 0
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Re : charts
- Next Thread: detecting a keystroke?


Linear Mode