Results 1 to 2 of 2
  1. #1
    __]H[elroos's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Location
    Rome
    Posts
    301
    Reputation
    44
    Thanks
    842
    My Mood
    Angelic

    Adding Certain Format In List Box

    Hi mpgh,

    How to add in the listbox1 only one type of format?

    It's the code to gett all the files in a directory.
    Code:
    Public Class Form1
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            For Each file As String In My.Computer.FileSystem.GetFiles("C:\SG Interactive\Crossfire Europe\")
                ListBox1.Items.Add(file)
            Next
        End Sub
    End Class
    How i have to edit it to get only .dll files?

    ---------- Post added at 05:11 PM ---------- Previous post was at 05:07 PM ----------

    Solved: Procedura: copiare file con un criterio specifico in una directory in Visual Basic

    Sorry for the thread :\

    Press Rep if you like my programs and my helps


  2. #2
    Hassan's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    System.Threading.Tasks
    Posts
    4,764
    Reputation
    495
    Thanks
    2,133
    My Mood
    Dead
    Marked solved and closed.

Similar Threads

  1. [Help Request] Triggering List Box Double Click Event
    By Amkay in forum Visual Basic Programming
    Replies: 3
    Last Post: 02-14-2012, 03:38 AM
  2. Auto Scrolling list box
    By luccss in forum DirectX/D3D Development
    Replies: 9
    Last Post: 10-27-2011, 10:41 AM
  3. [Tutorial] PART 5:The List Box Control
    By Takari in forum CrossFire Tutorials
    Replies: 9
    Last Post: 06-17-2011, 01:43 AM
  4. [Help]List Box
    By Web-Designer in forum Visual Basic Programming
    Replies: 6
    Last Post: 01-10-2011, 03:56 PM
  5. [HELP] List box won't work?
    By jajarem64 in forum Visual Basic Programming
    Replies: 8
    Last Post: 07-24-2010, 04:23 PM