Results 1 to 3 of 3

Thread: [RESOLVED] Populate Listview with files in my.resources

Threaded View

  1. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,423

    Re: Populate Listview with files in my.resources

    mf12's idea was correct. here's how:

    vb Code:
    1. Dim ResourceSet As Resources.ResourceSet = My.Resources.ResourceManager.GetResourceSet(Globalization.CultureInfo.CurrentCulture, True, True)
    2.         ListView1.Items.AddRange(ResourceSet.Cast(Of DictionaryEntry) _
    3.                                                   .Select(Function(d) New ListViewItem(d.Key.ToString)).ToArray)
    Last edited by .paul.; Sep 21st, 2011 at 11:37 AM. Reason: improvement

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width