[怎样用VB做一个图片浏览器]Public Class Form1 Dim i As Integer Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click i = i - 1 If (i...+阅读
上学期的作业,现在在电脑里,我把代码复制下
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_Click()
image1.Picture = LoadPicture(File1.Path & "/" & File1.FileName)
End Sub
然后把file1的pattern设为*.jpg;*.bmp
以下为关联文档:
怎么用VB做图片浏览器VB6.0实现图片旋转 使用过ACDSEE的朋友一定对它的JPG图片旋转功能记忆犹新,其实我们利用VB6的先进功能,可以对任意格式的图片文件(包括JPG、GIF、BMP、ICO等)进行45度、180度旋...
如何用VB调用windows图片浏览器Private Sub Command1_Click() Dim strPicPath As String strPicPath = "C:\Documents and Settings\Administrator\My Documents\My Pictures\1.jpg" strPicPath = """" & strPic...
怎么用vb编写一个图片浏览器呢Dim i% '用按钮更换图片 Private Sub Command1_Click() i = i + 1 If i > 5 Then i = 0 Image1.Picture = LoadPicture(App.Path & "\0" & i & ".jpg") End Sub '初始化 Private...