» Site Navigation | | | » Advertisement | | | » Recent Threads | | | MmMmM Yesterday 07:47 PM Today 12:03 AM 27 Replies, 28 Views | | | | | Good Night Thread 01-11-2007 02:13 AM
By emit
Yesterday 11:53 PM 793 Replies, 6,676 Views | |  |  | How do I load an image from the web into a picture box :[ |  |
01-02-2008, 01:28 PM
|
#1 (permalink)
| | Mudkips lieks you too.
Kyo #3 is offline
Join Date: Oct 2006 Location: New Hampshire? Posts: 6,372 Rep Power: 16 | How do I load an image from the web into a picture box :[ I need it for bot Dx. I've been doing my googleing and its only bringing up stuff for VB.net. I'm on VB6.
I noticed my wrapper has a GetImage thing, but I'm not sure how to use it. =F
__________________ 
Li-Shun is a god. ^ 
hatzganatta is awesome too ^^
| |
| |
01-04-2008, 04:23 AM
|
#2 (permalink)
| | VIP Member
second2none is offline
Join Date: Sep 2006 Location: BrisBANE <---- Age: 19 Posts: 5,026 Rep Power: 15 | Just download the image and load it into the picture box. There is a download function somewhere
__________________ This is from:
Screenies Of A Mod Code: How did you do it? FLP , jotform, some other form of hacking? - First Class Noob Lawl.. funny shit.
Quote: |
Originally Posted by Kore By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive. | Lawl Ownt
Hoes forgot to eat a dick and shut the FUCK UP! | |
| |
01-04-2008, 12:50 PM
|
#3 (permalink)
| | Mudkips lieks you too.
Kyo #3 is offline
Join Date: Oct 2006 Location: New Hampshire? Posts: 6,372 Rep Power: 16 | Quote:
Originally Posted by second2none Just download the image and load it into the picture box. There is a download function somewhere | I guess that will work ^_^ Thanks Kane.
__________________ 
Li-Shun is a god. ^ 
hatzganatta is awesome too ^^
| |
| |
01-04-2008, 12:52 PM
|
#4 (permalink)
| | Orange
Lord Kyo is offline
Join Date: Aug 2007 Location: Hell Age: 15 Posts: 3,592 Rep Power: 9 | ...Kane is unbanned.
WTF GUYS?!
Well, yeah just right click o the image and hit save as.
__________________ Quote:
Originally Posted by Doctor CAUSE LORD WILL TAKE OVER GG IN MY ABSENCE | Quote:
Originally Posted by Tyler Lordgrievous seems like an asshole but in the cool way. O: | Quote:
Originally Posted by Googlrr Lord plays BioShock AND portal. It would just be rude for him to be banned. | Quote:
Originally Posted by Snakebite Lordgrievous pwns. | | |
| |
01-04-2008, 01:22 PM
|
#5 (permalink)
| | Mudkips lieks you too.
Kyo #3 is offline
Join Date: Oct 2006 Location: New Hampshire? Posts: 6,372 Rep Power: 16 | I need to program to do it.]
I'll google download functions.
__________________ 
Li-Shun is a god. ^ 
hatzganatta is awesome too ^^
| |
| |
01-04-2008, 01:24 PM
|
#6 (permalink)
| | Elite Member
|G3| is offline
Join Date: Feb 2007 Posts: 2,839 Rep Power: 14 | Well I know doctor knows how to do it.
I have an example that he done but it's for autoit D:
I'll help you find a way though. | |
| |
01-04-2008, 07:55 PM
|
#7 (permalink)
| | VIP Slave Driver
Fewmitz again is offline
Join Date: Nov 2006 Location: fewmitz@live.com Posts: 2,219 Rep Power: 11 | Quote:
Originally Posted by |G3| Well I know doctor knows how to do it.
I have an example that he done but it's for autoit D:
I'll help you find a way though. | That's not a fair answer, because AutoIt is just plain better than VB >_>
Anyway, I have no idea either, not on the downloading part of it at least, so sadly the best I can do is wish you luck. | |
| |  | |  |
01-04-2008, 09:20 PM
|
#8 (permalink)
| | VIP Member
second2none is offline
Join Date: Sep 2006 Location: BrisBANE <---- Age: 19 Posts: 5,026 Rep Power: 15 | Autoit isn't better then VB by a long shot. Quote:
Public Function StripHeaders(strHTML As String) As String
Dim strParts() As String
'Split at the two line break
strParts = Split(strHTML, vbCrLf & vbCrLf, 2)
StripHeaders = strParts(1) 'return the body
End Function
Public Function DownloadFile(URL As String, Path As String)
Dim Filenum As Integer, strHTML As String
If CheckForFile(Path) = True Then
Kill Path
End If
Filenum = FreeFile
strHTML = StripHeaders(GetWrapper(URL, LastPage))
Open Path For Output As Filenum
Print #Filenum, strHTML
Close Filenum
End Function
| You just call it like Quote: |
Call DownloadFile(URL OF IMAGE, App.Path & "/Image.Extension")
| Pretty sure. Haven't used it in a while.
And then you just load it from your file to picture box Quote: |
LoadPicture Picture1.Picture App.Path & "/Image.Extension"
| If its a .png you will need a special module called. modPNG I think just google it. And yeah.  That should work.
Thats for VB6.
__________________ This is from:
Screenies Of A Mod Code: How did you do it? FLP , jotform, some other form of hacking? - First Class Noob Lawl.. funny shit.
Quote: |
Originally Posted by Kore By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive. | Lawl Ownt
Hoes forgot to eat a dick and shut the FUCK UP! | |
| |  |
01-05-2008, 06:31 PM
|
#9 (permalink)
| | Elite Member
|G3| is offline
Join Date: Feb 2007 Posts: 2,839 Rep Power: 14 | This is what I pm'd him. Code: Private Sub Command2_Click()
Dim URL As String
Dim b() As Byte
URL = "http://www.google.com/intl/en_ALL/images/logo.gif"
b() = Inet1.OpenURL(URL, icByteArray)
Do Until Inet1.StillExecuting = False
If Status = "Timeout" Then
Status = ""
Inet1.Cancel
End If
DoEvents
Loop
Dim f As Long
f = FreeFile
Open App.Path & "\logo.gif" For Binary Access Write As #f
Put #f, , b()
Close #f
Image1.Picture = LoadPicture(App.Path & "\logo.gif")
Kill App.Path & "\logo.gif"
End Sub | |
| |
01-05-2008, 06:43 PM
|
#10 (permalink)
| | VIP Member
second2none is offline
Join Date: Sep 2006 Location: BrisBANE <---- Age: 19 Posts: 5,026 Rep Power: 15 | well mine works with HTTPwrapper... (not that I made it, i was referring to my post)
and yeah.. can be customized for other wrappers..
I dont really like Inet. but what works, works I guess.
__________________ This is from:
Screenies Of A Mod Code: How did you do it? FLP , jotform, some other form of hacking? - First Class Noob Lawl.. funny shit.
Quote: |
Originally Posted by Kore By k[ore] on Today, 08:44 AM
i'll give you rep alright, but it won't be positive. | Lawl Ownt
Hoes forgot to eat a dick and shut the FUCK UP! | |
| |  | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | |