Teen Programmers Unite  
 

 

Return to forum top

picturebox control in vb

Posted by sinhadeepak [send private reply] at May 19, 2002, 09:03:07 AM

how to view both *.mpeg,*.avi,*.dat,*.jpeg,*.gif in a picturebox control in vb

Posted by metamorphic [send private reply] at May 19, 2002, 12:13:56 PM

not sure i understand you correctly. You say "both" but list 4 items. Surley both means 2?

MPEG's and AVI's are movies, and therfore I was under the impression that a picture box cannot hold them.

a .dat file could be anything, with any type of encoding, although it would most likly be text, so again why would you want to use a text box to veiw it?

.jpeg and .gif are image formats, and can be viewed using the picture box control.

anyway, what was the question again?

Posted by jay_dee [send private reply] at May 19, 2002, 02:14:55 PM

you cant

Posted by metamorphic [send private reply] at May 19, 2002, 03:51:07 PM

how can you say you can't? I don't even know what the Q is!

Posted by jay_dee [send private reply] at May 19, 2002, 06:16:43 PM

i THINK he asking how to view movies and pictures with the picturebox control in vb..now i'm no VB expert but i'm pretty sure you cant...but i'm just a poser so you might want to check it out some more before you give up compleatly.
jay

Posted by vikram_1982 [send private reply] at May 19, 2002, 10:49:47 PM

You may not be able to do so using a picture box, but an alternative could be to use the "Media Player Component" to fulfill ur needs. Embed the component in ur form and it will work just fine.

Posted by AngelOD [send private reply] at May 20, 2002, 03:51:37 AM

It's actually quite possible, since the Windows Media Player needs a viewport for showing, and that viewport can be almost any control with an Image property. :)

Posted by jay_dee [send private reply] at May 20, 2002, 04:18:40 PM

haha.. i looked it up....your right...dont pay any attention to anything that is say:)
jay

You must be logged in to post messages and see which you have already read.

Log on
Username:
Password:
Save for later automatic logon

Register as a new user
 
Copyright TPU 2002. See the Credits and About TPU for more information.