|
-
Aug 16th, 2001, 09:37 PM
#1
Thread Starter
Addicted Member
need a specific IF Then example...
I am trying to find an example of an If Then statement for the value of a picture box.
My statement does not work. Maybe you can just see what I am doing wrong.
Code:
Private Sub mnuFileConvert_Click()
If (imgFile.Picture.Value = "") Then
Exit Sub
Else
.........my code goes here
End If
End Sub
-
Aug 16th, 2001, 09:38 PM
#2
Member
You want to tell if there is a picture loaded in the picturebox?
-
Aug 16th, 2001, 09:39 PM
#3
Hyperactive Member
Pictureboxes don't have a .picture.value property.
-
Aug 16th, 2001, 09:46 PM
#4
Thread Starter
Addicted Member
Yes I just want to know if my picture box called "imgFile" has a value in it or not.
-
Aug 16th, 2001, 09:58 PM
#5
VB Code:
If imgFile.Picture.Type = vbPicTypeNone Then
'Picturebox is empty
Else
'Picturebox has something in it
End If
-
Aug 16th, 2001, 10:05 PM
#6
Thread Starter
Addicted Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|