If Me.OpenText.FileName = "*.pge" Then Me.Icon = loadpicture("pge.Picture"
If Me.OpenText.FileName = "*.note" Then Me.Icon = loadpicture("note.Picture "
David Paulson
If right$(Me.OpenText.FileName,3) = "pge" Then Me.Icon = loadpicture("pge.Picture"
If right$(Me.OpenText.FileName,4) = "note" Then Me.Icon = loadpicture("note.Picture "
that worked, but i had to change a few things. this is what the code is in case anyone is interested:
If Right$(Me.OpenText.FileName, 3) = "pge" Then Me.Icon = pge.Picture
If Right$(Me.OpenText.FileName, 4) = "note" Then Me.Icon = note.Picture
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.