Re: MultiColumn Listbox (MS-Forms 2.0 (VB6) )

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Or Projects => Components => Check "Windows Common Controls 6.0"
Select Listview from components tab



"Douglas J. Steele" <NOSPAM_djsteele@xxxxxxxxxxxxxxxxx> wrote in message
news:%23$J1koFHHHA.4056@xxxxxxxxxxxxxxxxxxxxxxx
Makes sure that comctl32.ocx or mscomctl.ocx exists on your machine and is
registered (reregister it using regsvr32.exe if necessary). It should show
up as "Microsoft ListView Control"

Randy Birch has great examples of using the Listview control at
http://vbnet.mvps.org/code/comctl/index.html

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Javad" <Javad@xxxxxxxxx> wrote in message
news:Oi5NUJBHHHA.4804@xxxxxxxxxxxxxxxxxxxxxxx
Helo JP
Thank you for the link. That project was using a vbTab method, but I
wasn't looking for this.
Can you please tell me where the "ListView" is? When I go to:
Project> Components

I have no "ListView" or "Microsoft ListView" in there. Where is it?

Thank you

"JP Bless" <jp3BlessNoSpam@xxxxxxxxxxx> wrote in message
news:eHekSBuGHHA.420@xxxxxxxxxxxxxxxxxxxxxxx
http://www.freevbcode.com/ShowCode.asp?ID=3680
Download sample project


Also listView (Report View) more manageable.



"Javad" <Javad@xxxxxxxxx> wrote in message
news:%23%231PDRpGHHA.1232@xxxxxxxxxxxxxxxxxxxxxxx
Hello

It's 2 days I'm searching google to find a way to put a "Multicolumn
Listbox" in my VB6 program, finally I got the suggestion to add
"Microsoft Forms 2.0" to the components of my project and use its
"Listbox", but as I tried, I couldn't find the way to put data in its
columns.

Now I have 2 questions about this new listbox of MS-Forms2:

1- How can I set the header of column 3 of the listbox to "Last Name"?

2- How can I set the value of column i of row j of this listbox to
"Williams"?

Any help is greatly appreciated. (and please don't suggest me to use a
"datagrid" or "flexgrid", I need a listbox, not a table)

Thank you






.



Relevant Pages

  • Re: MultiColumn Listbox (MS-Forms 2.0 (VB6) )
    ... registered (reregister it using regsvr32.exe if necessary). ... Randy Birch has great examples of using the Listview control at ... Doug Steele, Microsoft Access MVP ... "Listbox", but as I tried, I couldn't find the way to put data in its ...
    (microsoft.public.vb.general.discussion)
  • Re: ListView items BackColor bug
    ... Do you have any ideas for adding color to individual "listBox" items? ... I suggest to use a listview control if you want to ... assigning the background color to the 'ListViewItem' objects' 'BackColor' ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Treeviews
    ... (re Listview) is in the realm where you have put your ... Editor and GUI classes. ... route I went - record editing on the left and a Listbox on the right. ... Then I see one of my smart buddies in Answer Exchange using a Treeview ...
    (comp.lang.cobol)
  • Cross-thread operation not valid questions
    ... A form containng several tabs, one of which contains a ListView ... all items in the ListView control on the main form. ... Dim lvwItem as ListViewItem ... unless I insert Application.Doeventsinto the loop. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: in listbox eine zeile grau machen
    ... Mit der ListBox ist dies nur mit Aufwand möglich, ... ListView aus den Windows Common Controls 6.0 greifen. ... With TreeView1 ... .FullRowSelect = True ...
    (microsoft.public.de.vb)