VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB Expert!

Join 307,136 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,953 people online right now. Registration is fast and FREE... Join Now!




Viewing a Jpg File

 

Viewing a Jpg File

renmee

3 Nov, 2009 - 05:47 PM
Post #1

D.I.C Head
**

Joined: 19 Jul, 2009
Posts: 74


My Contributions
im using this code to view a pdf file. i cant seem to use this with a jpg file
CODE
'open Picture4
Private Sub grdPicture4_DblClick()
Dim myfol As String
Dim myfln As String
Dim myfpath As String
Dim Pa As String
Dim AcrobatReader As String

myfol = "\\GNFPDB1\QAR Picture\4" & myfln
myfln = lblEmpID.Caption
myfpath = myfol & myfln

Pa = myfpath & ".pdf"
ShellExecute 0&, "open", Pa, "", "", vbNormalFocus
End Sub


User is offlineProfile CardPM
+Quote Post


bytelogik

RE: Viewing A Jpg File

4 Nov, 2009 - 01:50 AM
Post #2

D.I.C Head
**

Joined: 6 Oct, 2009
Posts: 63



Thanked: 5 times
My Contributions
The Picturebox control is capable of displaying a jpeg file.
User is offlineProfile CardPM
+Quote Post

vb5prgrmr

RE: Viewing A Jpg File

6 Nov, 2009 - 12:01 AM
Post #3

D.I.C Regular
***

Joined: 21 Mar, 2009
Posts: 486



Thanked: 30 times
My Contributions
Or an image control or even the form itself is able to display images...



Good Luck


User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 02:54PM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month