Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

VB6 List View with columns

Posted on 2008-10-15
3
Medium Priority
?
525 Views
Last Modified: 2010-04-30
Hello,

In VB6... How do I create a list like the one in this image and how do I populate it.

http://img262.imageshack.us/img262/668/47654679wl3.gif

For example if I wanted the following information as a table within my visual basic program

Log Number |  Logged By  |  Date
--------------------------------------------
001                John               14/10/2008
002                Steve             13/10/2008
003                Helen             12/10/2008

Thank you
0
Comment
Question by:stellaartois
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Expert Comment

by:FER_G
ID: 22721627
stellaartois;
I'm afraid to say, that the image is a grid control, not a list, so it's simpliest...
You can use a MSFlexGrid Control and add each cell to the grid easily

Msflex.AddItem "cell1" & vbTab & "cell2" & vbTab & ... "celln"

FerG
Saludos
--
Ing. Fernando D. Giletta
San Fco. Cba. Arg.
0
 
LVL 2

Author Comment

by:stellaartois
ID: 22722460
Hi there,

I have found the MSFlexGrid within the component menu.

It shows titles on columns and rows, my friend says that you have to set it to "Reporter" mode but I dont know where this setting is.

I have looked in the propeties pane and the properties menu that is accessed by right mouse clicking the object.

Thanks for further assistance.

0
 
LVL 7

Accepted Solution

by:
FER_G earned 375 total points
ID: 22724660
stellaartois;
I put this code so you can take an idea of how MsFlexGrid work.
Add a MsFlexGrid control to a Form, and copy-paste the code snippet
You can see that the obtained result is the same of the picture that you have put
http://img262.imageshack.us/img262/668/47654679wl3.gif

FerG
Saludos
--
Ing. Fernando D. Giletta
San Fco. Cba. Arg.
Private Sub Form_Load()
    With MSFlexGrid1
        .Cols = 9
        .Rows = 3
        .GridLines = flexGridNone
        
        'columns titles
        .TextMatrix(0, 0) = "Status"
        .TextMatrix(0, 1) = "Selection"
        .TextMatrix(0, 2) = "Bet Value"
        .TextMatrix(0, 3) = "Index V..."
        .TextMatrix(0, 4) = "Difference"
        .TextMatrix(0, 5) = "Bet Date"
        .TextMatrix(0, 6) = "Bet Time"
        .TextMatrix(0, 7) = "Time Remai.."
        .TextMatrix(0, 8) = "Curren Status"
        
        'cells.
        .TextMatrix(1, 0) = "Pending"
        .TextMatrix(1, 1) = "Equal to or.."
        .TextMatrix(1, 2) = "5,436.0"
        .TextMatrix(1, 3) = ""
        .TextMatrix(1, 4) = ""
        .TextMatrix(1, 5) = "10/07/2008"
        .TextMatrix(1, 6) = "09:10"
        .TextMatrix(1, 7) = "-"
        .TextMatrix(1, 8) = "Finished (..."
        
        
    End With
End Sub

Open in new window

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question