Click here to Skip to main content
15,911,531 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionKey Block Pin
nim5215-Oct-06 6:56
nim5215-Oct-06 6:56 
QuestionDatabase help Pin
eric_tran15-Oct-06 6:55
eric_tran15-Oct-06 6:55 
AnswerRe: Check Folders Pin
Are Jay15-Oct-06 10:31
Are Jay15-Oct-06 10:31 
QuestionMinimize to system tray [modified] Pin
jon-8015-Oct-06 4:28
professionaljon-8015-Oct-06 4:28 
AnswerRe: Minimize to system tray Pin
UltraCoder15-Oct-06 12:37
UltraCoder15-Oct-06 12:37 
GeneralRe: Minimize to system tray Pin
jon-8017-Oct-06 11:50
professionaljon-8017-Oct-06 11:50 
QuestionCapturing Keyup & KeyDown in a Datagrid Pin
hisuman10015-Oct-06 3:02
hisuman10015-Oct-06 3:02 
QuestionUsing ImageList with Listview Question Pin
japel15-Oct-06 2:54
japel15-Oct-06 2:54 
I have a app with a listview on a form set to detailsview. This works great but now I would like to add small image icons.

In the listview controle is a "smallimagelist" property that is set to none and I can not change that...?

Below is the code I use to populate the listview on load....

How can I modify my code to allow small icon view mode?

<br />
<br />
    Public Sub ReloadListviewFromXML()<br />
        Dim AddressBook As String = (Path.Combine(Application.StartupPath, "AddressBook.xml"))<br />
        Dim ds As New DataSet<br />
<br />
        Try<br />
            ds.ReadXml(AddressBook)<br />
            Dim dt As DataTable = ds.Tables("People")<br />
            Dim i As Integer<br />
            Dim j As Integer<br />
            Me.listviewObjects.Items.Clear()<br />
<br />
            For i = 0 To dt.Rows.Count - 1<br />
                Dim dr As DataRow = dt.Rows(i)<br />
                With Me.listviewObjects<br />
                    .Items.Add(dr(0))<br />
                    For j = 1 To dt.Columns.Count - 1<br />
                        .Items(i).SubItems.Add(dr(j))<br />
                    Next<br />
                End With<br />
            Next<br />
        Catch ex As System.Exception<br />
<br />
        End Try<br />
<br />
        listviewObjects.GridLines = True<br />
        listviewObjects.FullRowSelect = True<br />
        listviewObjects.MultiSelect = True<br />
<br />
    End Sub<br />
<br />


Thanks...

When people make you see red, be thankful your not colour blind.

AnswerRe: Using ImageList with Listview Question Pin
Nico van der Plas16-Oct-06 23:50
Nico van der Plas16-Oct-06 23:50 
QuestionWindows forms user timeout? Pin
psantoshkumar14-Oct-06 21:40
psantoshkumar14-Oct-06 21:40 
AnswerRe: Windows forms user timeout? Pin
Colin Angus Mackay14-Oct-06 22:26
Colin Angus Mackay14-Oct-06 22:26 
QuestionHow-To: Custom Desktop .... [modified] Pin
Super Lloyd14-Oct-06 21:06
Super Lloyd14-Oct-06 21:06 
AnswerRe: How-To: Custom Desktop .... Pin
Christian Graus14-Oct-06 21:14
protectorChristian Graus14-Oct-06 21:14 
GeneralRe: How-To: Custom Desktop .... Pin
Super Lloyd14-Oct-06 21:18
Super Lloyd14-Oct-06 21:18 
GeneralRe: How-To: Custom Desktop .... Pin
Christian Graus14-Oct-06 22:40
protectorChristian Graus14-Oct-06 22:40 
GeneralRe: How-To: Custom Desktop .... Pin
Michael Dunn14-Oct-06 21:28
sitebuilderMichael Dunn14-Oct-06 21:28 
GeneralRe: How-To: Custom Desktop .... Pin
Christian Graus14-Oct-06 22:39
protectorChristian Graus14-Oct-06 22:39 
AnswerRe: How-To: Custom Desktop .... Pin
peterchen14-Oct-06 21:27
peterchen14-Oct-06 21:27 
GeneralRe: How-To: Custom Desktop .... Pin
Anton Afanasyev14-Oct-06 21:45
Anton Afanasyev14-Oct-06 21:45 
GeneralRe: How-To: Custom Desktop .... Pin
Super Lloyd14-Oct-06 21:52
Super Lloyd14-Oct-06 21:52 
AnswerRe: How-To: Custom Desktop .... Pin
Steve Mayfield14-Oct-06 22:49
Steve Mayfield14-Oct-06 22:49 
GeneralRe: How-To: Custom Desktop .... Pin
Super Lloyd14-Oct-06 23:38
Super Lloyd14-Oct-06 23:38 
AnswerRe: How-To: Custom Desktop .... Pin
Gary R. Wheeler15-Oct-06 0:42
Gary R. Wheeler15-Oct-06 0:42 
GeneralRe: How-To: Custom Desktop .... Pin
Super Lloyd15-Oct-06 0:57
Super Lloyd15-Oct-06 0:57 
Questionvb.net Pin
vijayasathish14-Oct-06 20:30
vijayasathish14-Oct-06 20:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.