[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


VB6 Drag image from web browser to image or picture box?

Posted on 2006-04-11
Medium Priority
Last Modified: 2012-06-21
I have webbrowser in my vb6 application, I have it load a website with images on it... I can drag and drop the images to a RitchTextBox on the form but not to a imagebox or picterbox.

What are the property settings or what code needs to be in place to allow the image drag and drop from web to picture box or image box? (VB6)

Question by:siweddle
LVL 28

Accepted Solution

vinnyd79 earned 2000 total points
ID: 16432097
Try setting the Pictureboxes OleDropMode Property to manual,then try:

Private Sub Picture1_OLEDragDrop(Data As DataObject, Effect As Long, _
Button As Integer, Shift As Integer, X As Single, Y As Single)
    On Error GoTo Err
    Picture1.Picture = LoadPicture(Data.Files(1))
    Exit Sub
    MsgBox "The Picture you dragged could not be loaded"
End Sub

Author Comment

ID: 16432236
Thanks vinnyd79,
it works now! woohoo.

Thought I had set the "OleDropMode" but it was the  "DragMode" I set and that ofcorse did not work.. thanks for the tip.


Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question