
Help Needed How I Create Listbox That Look Like Multi Column Listbox
You can do the same on VB, declare the SendMessage API function and do:
Dim Tabs(0 to MaxTabStops) as Long
Dim nTabStops as Long
nTabStops = 2
Tabs(0) = 10
Tabs(1) = 20
SendMessage (YourControl.hWnd, LB_SETTABSTOPS, nTabStops, Tabs(0));
Hope this helps.
Quote:
> want to create Listbox that will show like the next format
> Code Name Location
> 100 Name1 Box1
> 102 Name2 Box1
> 103 Name3 Box1
> 104 Name4 Box1
> 105 Name5 Box1
> my problem is that the strings are not the same size so it look messy
> in C we solve this problem by useing Tabstops
> C code
> BaseUnit = (int)GetDialogBaseUnits();
> nTabStops=2;
> vTabStops[0]=BaseUnit*3;
> vTabStops[1]=vTabStops[0]+BaseUnit*3;
> SendDlgItemMessage(hDlg,LB_TESTS,LB_SETTABSTOPS,(WORD)nTabStops,(
> DWORD)(LPSTR)vTabStops);
> I dont know how to create the same thing in vb
> Any help will be greatly appreciate.
> --
> Avner Belisha