|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Control similar to MS Access List BoxHello -
I'm upgrading an app from MS Access to VB 6. I have used a List Box in Access that has columns and column widths. Is there some equivalent control in VB 6? I've tried various Listboxes I found in VB 6, but none of them have the column width property. Any help will be greatly appreciated! -- Sandy "Sandy" <Sa***@discussions.microsoft.com> wrote in message A ListView or a grid control might be a workable replacement.news:1020923F-BC4B-48D4-A8C3-CC584A944705@microsoft.com > Hello - > > I'm upgrading an app from MS Access to VB 6. I have used a List Box > in Access that has columns and column widths. > > Is there some equivalent control in VB 6? I've tried various > Listboxes I found in VB 6, but none of them have the column width > property. -- Reply to the group so all can participate VB.Net: "Fool me once..." "Sandy" <Sa***@discussions.microsoft.com> wrote in message You can find the ListView Bob mentioned by selecting Project/Components, news:1020923F-BC4B-48D4-A8C3-CC584A944705@microsoft.com... > Hello - > > I'm upgrading an app from MS Access to VB 6. I have used a List Box in > Access that has columns and column widths. > > Is there some equivalent control in VB 6? I've tried various Listboxes I > found in VB 6, but none of them have the column width property. > > Any help will be greatly appreciated! > -- > Sandy scrolling down to 'Microsoft Windows Common Controls 6' and placing a check in the box. You'll have to package this component with your app when you deploy it. To get an idea of what it looks like, open Windows Explorer. The side that shows the files and has column headers that say "Name", "Size", "Type", etc.... that's a ListView (actually a SysListView32 but it looks/acts the same) There's quite a bit of difference in syntax when compared to a ListBox but once you get the hang of it, it's a breeze. '======== Private Sub Form_Load() Dim i As Integer With ListView1 .View = lvwReport '<-- for ListBox look/feel .ColumnHeaders.Add , , "Item" 'Must have headers .ColumnHeaders.Add , , "SubItem" 'Even though there has to be headers for each column 'it doesn't mean you have to see them... 'Uncomment the line below to hide the headers if you want '.HideColumnHeaders = True For i = 1 To 10 With .ListItems.Add 'first column is a ListItem .Text = "Item " & i With .ListSubItems.Add 'all other colums are ListSubItems .Text = "SubItem " & i End With End With Next 'You can select one using syntax similar to.... Set .SelectedItem = .ListItems(10) End With End Sub '======== -- Ken Halter - MS-MVP-VB - Please keep all discussions in the groups.. DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm Sandy wrote:
> I'm upgrading an app from MS Access to VB 6. I have used a List Box You can set tabstops within an ordinary Listbox. Check out the CoolTabs> in Access that has columns and column widths. > > Is there some equivalent control in VB 6? I've tried various > Listboxes I found in VB 6, but none of them have the column width > property. > > Any help will be greatly appreciated! tool here: http://ccrp.mvps.org/download/cooltools.htm Later... Karl Thanks, All!
-- Show quoteHide quoteSandy "Sandy" wrote: > Hello - > > I'm upgrading an app from MS Access to VB 6. I have used a List Box in > Access that has columns and column widths. > > Is there some equivalent control in VB 6? I've tried various Listboxes I > found in VB 6, but none of them have the column width property. > > Any help will be greatly appreciated! > -- > Sandy
Password Change
how to convert string to date? Text to Speech VB6 writing to text files requires Close to commit TransparentBlt and Autoredraw issues (refresh isnt solving it) Picturebox fit newbe question write to disk and permissions Code for stored procedures Call a DLL in C from VB Using VB to screen scrape a 3270 mainframe |
|||||||||||||||||||||||