读书人

怎么通过FileListBox在PictureBox显示

发布时间: 2012-01-10 21:26:50 作者: rapoo

如何通过FileListBox在PictureBox显示图片!!!!
请问,我已经在FileListBox现在了图片文件列表,应该怎么做在单击其中一个图片文件的时候,在PictureBox立即显示出来呢??

还有应该怎么做才能 通过 “上一个” “下一个”的按钮来显示filelistbox中的图片呢!!!

麻烦大家了!!!!

[解决办法]
-_-|||,这样写好一点。

Private Sub FileListBox1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles FileListBox1.SelectedIndexChanged
Me.PictureBox1.Image = Image.FromFile(Me.FileListBox1.Path & "\ " & Me.FileListBox1.SelectedItem.ToString)
End Sub

读书人网 >VB Dotnet

热点推荐