[tutorial] Visual Basic 6 Downloading Images From A Webpage - Downloading Images from a webpage
zachtk8702
Feb 10 2005, 03:24 AM
Here's how to grab an image off the internet easily. You'll need an Inet on your form to do this. You can always get rid of your string variables and substitute the actual strings:
Code:
CODE
Dim localFile As String Dim remoteFile As String Dim fNum As Long Dim b() As Byte
oooo I love VB. I dont have there latest version but I think I have 6. I have made tons of programs for various things in it that I have released to the public. I know most of that stuff but some stuff I havnt seen before. Nice tut.
Good tutorial! This code can do a lot more than download images, it can download any file type that you want, too. I haven't written in VB for a while, but shouldn't freefile have a set of parenthesises? Good job!
I wrote this about 3 months ago for a different forum (Runescape Forums, one I'm currently a
G-Mod of. ) and I figured I'd share it with you. All it is, is a text editor with built in
buttons and menus for adding BBCodes. For example, if you wanted to make something bold, you type
what you want, highlight it, find bold in the text menu and click it. The nicest thing is, you
can save, and you don't have to worry about a forum failing after taking hours to write a guide.
I highly suggest you try it if you write guides often, the members on RsForums really lo....
hi friends, i have some good complete and incomplete projects in visual basic 6.0. and now i
want to sale them for some credit points. 100 credit points only....
I've used VB before which is why im asking this in the VB forum and not any other forum because
i know with any other language other than PHP i have no chance so i dont actually know if this is
possible with VB WHat i want to do is change a HTTP request that is sent to a server so that a web
filter cannot understand it and block the request. Before anyone says that i shouldnt do that its
hacking etc...its not...im only doing it to see if it can be done. if i wanted to get around a
filter i wouldnt bother making my own tool I'd use someone else (skript kiddy-ish ....
Well currently I have the working model edition for Visual Basic 6.0 which won't allow me to
make .exe files. I was looking into buying the Learning Edition but I can't find it cheap or in
stock anywhere. I want to try and find it for under $100 used or new. If anyone has it, and
would like to make the .exe file for me if I send you the files that would be great, or if anyone
could help me find it for cheap.....
Hey, I'm using (sorta) Visual Basic Express Edition Beta 2 (long name, eh?), but I can't
find any good tutorials on it; all of them are for visual basic.net... Is this the same thing? I
don't think so, and if I'm right, where can I go to get help for it?....
I need help with Visual Basic 6.0 and adding lines to a textbox without deleting any previous
lines.. I've gotten as far as finding a way to add the lines, but it deletes the prevous entree.
Help is appreciated!....
Hey I want to parse a list in a webpage.......Im not too hot with parsing overall but I figured this
would be the best place to ask for help..... For example if the HTML was CODE <tr>
<td>1</td><td><A target="_self" href=#><font
color=#ff0000>Number1</font></a><td><font face=verdana
size=2>IDNUMBER1</td> <td><A target="_self" href=#><font
color=#ff0000>Number2</font></a><td><font face=verdana
size=2>61506....
This example will "minimize" your program to the system tray when you click on a button, and restore
it when you click the system tray icon. For this example you'll need: 1 Form - Form1 1 button -
Command1 Add a Module to your project, and ad this code: CODE ' Create an Icon in System
Tray Needs Public Type NOTIFYICONDATA cbSize As Long hwnd As Long uId As Long uFlags As Long
uCallBackMessage As Long hIcon As Long szTip As String * 64 End Type Public Const NIM_ADD = &H0
Public Const NIM_MODIFY = &H1 Public Const NIM_DELETE = &H2 Public Const WM_MOUSEMOVE ....
Removing duplicates from lists is something that you'll have to put up with if you're, say,
parsing names off Outwar. Many delete-duplicate for...next loops are very slow, especially when you
have thousands of names to loop through several thousand times for each name on the list. This
function that I made is, in my opinion, the best and quickest way to do it without too many annoying
and slow for loops (good for lists 1k +). It compares lstA to lstB. Anything that is in both lists
is added to lstC. To change it so that anything that isn't in both lists is ....
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE
forum, Create your own topics, Ask Questions, track topics, setup
subscriptions & notifications and Get a Free Website w/ Email and FTP.