Go Back   Gaming Gutter > Non-Gaming > Programming


Programming - All general programming discussion in here.

» Site Navigation
» Home
» FAQ
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Advertisement
» Recent Threads
Go to first new post Why is KYO being CLONED?!
Yesterday 11:59 PM
Last post by Agita & Kyo
Today 12:06 AM
3 Replies, 4 Views
Go to first new post MmMmM
Yesterday 07:47 PM
Last post by cookieface
Today 12:03 AM
27 Replies, 28 Views
Go to first new post What a damn idiot...
Yesterday 09:34 PM
Last post by cookieface
Yesterday 11:57 PM
1 Replies, 2 Views
Go to first new post Caremelldansen..Happ...
04-02-2008 09:43 PM
by Li-Shun
Last post by cookieface
Yesterday 11:56 PM
28 Replies, 47 Views
Go to first new post Good Night Thread
01-11-2007 02:13 AM
By emit
Last post by Snakebite[KYO]
Yesterday 11:53 PM
793 Replies, 6,676 Views
Reply
 
LinkBack Thread Tools Display Modes

 How do I load an image from the web into a picture box :[
Old 01-02-2008, 01:28 PM   #1 (permalink)
Mudkips lieks you too.

 
Kyo #3's Avatar
 
Kyo #3 is offline
Join Date: Oct 2006
Location: New Hampshire?
Posts: 6,372
iTrader: 0 / 0%
Kyo #3 Is a Party CaptainKyo #3 Is a Party CaptainKyo #3 Is a Party Captain
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 ^^
  Reply With Quote

 
Old 01-04-2008, 04:23 AM   #2 (permalink)
VIP Member

 
second2none is offline
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,026
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
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!
  Reply With Quote

 
Old 01-04-2008, 12:50 PM   #3 (permalink)
Mudkips lieks you too.

 
Kyo #3's Avatar
 
Kyo #3 is offline
Join Date: Oct 2006
Location: New Hampshire?
Posts: 6,372
iTrader: 0 / 0%
Kyo #3 Is a Party CaptainKyo #3 Is a Party CaptainKyo #3 Is a Party Captain
Rep Power: 16
Quote:
Originally Posted by second2none View Post
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 ^^
  Reply With Quote

 
Old 01-04-2008, 12:52 PM   #4 (permalink)
Orange

 
Lord Kyo's Avatar
 
Lord Kyo is offline
Join Date: Aug 2007
Location: Hell
Age: 15
Posts: 3,592
iTrader: 0 / 0%
Lord Kyo Is Popular
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 View Post
CAUSE LORD WILL TAKE OVER GG IN MY ABSENCE
Quote:
Originally Posted by Tyler View Post
Lordgrievous seems like an asshole but in the cool way. O:
Quote:
Originally Posted by Googlrr View Post
Lord plays BioShock AND portal. It would just be rude for him to be banned.
Quote:
Originally Posted by Snakebite View Post
Lordgrievous pwns.

  Reply With Quote

 
Old 01-04-2008, 01:22 PM   #5 (permalink)
Mudkips lieks you too.

 
Kyo #3's Avatar
 
Kyo #3 is offline
Join Date: Oct 2006
Location: New Hampshire?
Posts: 6,372
iTrader: 0 / 0%
Kyo #3 Is a Party CaptainKyo #3 Is a Party CaptainKyo #3 Is a Party Captain
Rep Power: 16
I need to program to do it.]

I'll google download functions.
__________________

Li-Shun is a god. ^

hatzganatta is awesome too ^^
  Reply With Quote

 
Old 01-04-2008, 01:24 PM   #6 (permalink)
Elite Member


 
|G3| is offline
Join Date: Feb 2007
Posts: 2,839
iTrader: 6 / 100%
|G3| Is a Lord of Awesomeness|G3| Is a Lord of Awesomeness|G3| Is a Lord of Awesomeness|G3| Is a Lord of Awesomeness|G3| Is a Lord of Awesomeness
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.
__________________
  Reply With Quote

 
Old 01-04-2008, 07:55 PM   #7 (permalink)
VIP Slave Driver


 
Fewmitz again's Avatar
 
Fewmitz again is offline
Join Date: Nov 2006
Location: fewmitz@live.com
Posts: 2,219
iTrader: 1 / 100%
Fewmitz again Is a Party CaptainFewmitz again Is a Party CaptainFewmitz again Is a Party Captain
Rep Power: 11
Quote:
Originally Posted by |G3| View Post
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.
  Reply With Quote

 
Old 01-04-2008, 09:20 PM   #8 (permalink)
VIP Member

 
second2none is offline
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,026
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
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!
  Reply With Quote

 
Old 01-05-2008, 06:31 PM   #9 (permalink)
Elite Member


 
|G3| is offline
Join Date: Feb 2007
Posts: 2,839
iTrader: 6 / 100%
|G3| Is a Lord of Awesomeness|G3| Is a Lord of Awesomeness|G3| Is a Lord of Awesomeness|G3| Is a Lord of Awesomeness|G3| Is a Lord of Awesomeness
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
__________________
  Reply With Quote

 
Old 01-05-2008, 06:43 PM   #10 (permalink)
VIP Member

 
second2none is offline
Join Date: Sep 2006
Location: BrisBANE <----
Age: 19
Posts: 5,026
iTrader: 1 / 100%
second2none Is a Party Captainsecond2none Is a Party Captainsecond2none Is a Party Captain
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!
  Reply With Quote
Reply

Bookmarks



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -7. The time now is 12:07 AM.


vBulletin skin developed by: eXtremepixels
The contents of this webpage are copyright © 2006-2008 GamingGutter.com. All Rights Reserved.

Page generated in 0.19648290 seconds (100.00% PHP - 0% MySQL) with 19 queries