adspace
Code for display the images from drive using vb 6.0?
Answer Posted / Chandra Mauli Sharma
Displaying images from a drive using VB6 involves using the Microsoft Internet Transfer Control (BIT) component. Here's an example of how to load and display an image:
```vbnet
Dim objBit As Object
Set objBit = CreateObject("InternetExplorer.Application")
With objBit
.Visible = False
.Navigate "file://c:pathtoimage.jpg"
Do While .Busy
DoEvents
Loop
End With
' Get the image object from the HTML document
Dim objDoc As Object
Set objDoc = objBit.Document
Dim objImg As Object
Set objImg = objDoc.Images(0)
' Set image control properties and load the image
Dim objPicture As Object
Set objPicture = Form1.Controls("Image1")
objPicture.PicturedType = 2 ' PBJ (Picture)
objPicture.LoadPicture objImg
```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
I am taking the bmc control m/enterprise manager 7.0 scheduling test and just wanted to see what kind of questions they would ask or if anyone has taken the test and how long it is for how many questions?
Bonjour, svp je veut voir comment envoyer un mail en java et comment changer le droit d'accé d'un fichier en java: de lecture en lecture/écriture et merci d'avance ;)
How to get the index of the clicked field in reports in ABAP?
Explain the types of operations? Draw the figure for shift and rotate operations?
Hi Guys, This is Rama, right now I am working as a Software Test Engineer in Gurgoan and I have over all 3 years of testing expoeriance. Right now I am looking for a change. Can any body help me out to find a job in south india. Thanks in Advance
please any one pass file aid,xpeditor and endeavor tools
what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct
Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in
hi This is radhika.Can anyone help me to know the question papers of NATIONAL INFORMATICS CENTRE for the post of scientific officer/engineer? if anyone know plz tell me question paper pattern
Give examples of macro quoting function?
can we extend a class having only one parameterised constructor.Suggest the process to do it.
Mainly Related to Oracle, DBMS , Oracle Stored Procedures, Functions, Oracle 9i Architecture, Redo logs..., Views,
If u need any fake experience certificate in software side, contact me at: vikramyadhav@gmail.com
what is class module in vb6? what it's use? with example..
I want sample papers for NIC Examination. Plz send them to my mail Id das.neelam@gmail.com . Plz send it today, tomorrow i've the exam.