Code for display the images from drive using vb 6.0?

Answers were Sorted based on User's Feedback



Code for display the images from drive using vb 6.0?..

Answer / subbu malepati

Joebin, r u giving the answer for that question or asking
another question?

Is This Answer Correct ?    2 Yes 0 No

Code for display the images from drive using vb 6.0?..

Answer / joebin

vb interview qt

Is This Answer Correct ?    2 Yes 1 No

Code for display the images from drive using vb 6.0?..

Answer / 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

More Programming Languages AllOther Interview Questions

which of the following is efficient in terms of space a. insertion sort b. quick sort c. selection d. both a and c

1 Answers   Hughes,


Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod

1 Answers  


differenc between visual studio 2005,2008 & 2010?

2 Answers  


needs examples for black box testing and white box testing

1 Answers   CTS, IBM, Wipro,


Write a function which accepts a sentence as input parameter.Each word in that sentence is to be reversed. Space should be there between each words.Return the sentence with reversed words to main function and produce the required output. for eg:- i/p: jack jill jung kill o/p: kcaj llij gnuj llik

1 Answers   Mind Tree,


How to set on/off a group of indicators in a single statement?

1 Answers  


What parameters are used to run a JCL JOB on a perticular DAY and TIME and DATE

1 Answers  


How to update a data for the views in the relational data base schema

1 Answers   TCS,


how to convert infix expression to prefix expression?

1 Answers   nvidia,


What do you mean by text editor?

1 Answers   Infosys,


what is the current salary package in India for a lamp programmer

1 Answers   HCL,


Difference between views and index in sas programming

1 Answers   Ventois,


Categories