I am trying to create a new picturebox for each file listed by io file existes but the pictureboxes have to follow each new example side by side.
Resultados de traduçãoCode:Dim dir As System.IO.DirectoryInfo = New System.IO.DirectoryInfo("C:\") Dim modk = 100 Dim makd = 100 For Each file As System.IO.FileInfo In dir.GetFiles() Dim iconForFile As Icon = SystemIcons.WinLogo item = New ListViewItem(file.Name, 2) NewPictureBox.Parent = Me NewPictureBox.BackColor = Color.Red modk += 20 makd += 20 NewPictureBox.Location = New Point(modk, makd) Me.Controls.Add(NewPictureBox) Next
the purpose of the above code is to create picturebox side by side for each file in the directory I'm trying to create a table companion menu for my program and I've never done anything like that.




Reply With Quote
