How to get url images in picture box/image box using Visual Basic 6.0 dekstop application?

Plz Help me.....

Recommended Answers

All 3 Replies

Can you give us more details about it?

By URL images I understand you mean pictures uploaded onto the web? :s so like. ""

Seems Like I hard one, using winsock, and saving to file, easily doable, :) if you need help with the code, I can help

try this code using the windows API:

Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long

Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean
  Dim lngRetVal As Long
  lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
  If lngRetVal = 0 Then DownloadFile = True
End Function
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.