|
-
Feb 25th, 2007, 10:02 AM
#1
Thread Starter
Member
"Converting" this web page to VB
Right now, my program is just a Form with a WebBrowser in it, and the WebBrowser loads a web page (hosted locally) that allows you to upload an image to a website. You find the image you're looking for, then click Submit. It gets uploaded, and then you get redirected to a new page that has the url to the image you just uploaded. Here's the code for it:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Imageshack Uploader Test</title>
</head>
<body bgcolor="#F7F7F7">
<form method="post" action="http://imageshack.us/" enctype="multipart/form-data" onSubmit="return checkemail()" id="upform">
<div id="upfile"><input type="file" name="fileupload" size="30" onChange="showoptions(this)" id="fileupload"> </div>
<div id="upurl" style="display: none"><input type="text" id="fileupload" value="paste image url here" style="color: #888;"
onfocus="focusfield(this)" name="url" size="30"> </div>
<input type="hidden" name="MAX_FILE_SIZE" value="13145728">
<input type="hidden" name="refer" value="">
<input type="hidden" name="brand" value="">
<div id="hostbutton" style="padding-top: 5px;">
<input name="Button" type="submit" id="butan" style="width:135px" value="Submit!">
</div>
</form>
</body>
</html>
If you don't understand what I was talking about before, then just try saving that as an html file and running it :P
Now, I have two questions. A, is it possible to make this work using VB, instead of having a WebBrowser loading a web page, and if it is, then B, how would I do this? It's been quite a while since I used VB, and even when I did, I didn't know alot.
Thanks
Last edited by Skootles; Feb 25th, 2007 at 11:35 AM.
-
Feb 26th, 2007, 01:04 PM
#2
Lively Member
Re: "Converting" this web page to VB
-
Feb 26th, 2007, 06:57 PM
#3
Thread Starter
Member
Re: "Converting" this web page to VB
Thanks, but that's for C#, not VB..
-
Feb 26th, 2007, 07:30 PM
#4
Lively Member
Re: "Converting" this web page to VB
-
Feb 26th, 2007, 10:07 PM
#5
Thread Starter
Member
Re: "Converting" this web page to VB
Again, thanks, but I don't feel like learning C#.
-
Feb 26th, 2007, 10:13 PM
#6
Lively Member
Re: "Converting" this web page to VB
You don't need to learn C#. Find an example that looks like it will work for you via the description. Then copy and paste the C# code into the C# to VB converter tool.
And if you know how to use the .NET version of the VB language, you basically know C# already. It uses the same libraries, the code is just in a different, but still easily readable, syntax.
-
Feb 26th, 2007, 10:43 PM
#7
Thread Starter
Member
Re: "Converting" this web page to VB
 Originally Posted by supertotallyawesome
And if you know how to use the .NET version of the VB language, you basically know C# already. It uses the same libraries, the code is just in a different, but still easily readable, syntax.
Which I don't.
I only know *very very* simple VB coding. I know even less about html forms.
-
Feb 26th, 2007, 11:40 PM
#8
Hyperactive Member
Re: "Converting" this web page to VB
well you going to have to put forth an effort to learn some vb unless you want ppl to code everything for you.
-
Mar 1st, 2007, 03:42 PM
#9
Thread Starter
Member
Re: "Converting" this web page to VB
I'm willing to learn, yes, I just need help for this project (not school related, this is for me) at this time.
-
Mar 1st, 2007, 04:27 PM
#10
Re: "Converting" this web page to VB
Is it for VB.NET or VB6?
Am I right in saying you just want to upload an image to a website, then send the user to that link, from a VB app?
-
Mar 1st, 2007, 10:45 PM
#11
Thread Starter
Member
Re: "Converting" this web page to VB
It's for VB6, and yes, that's what I want to do. However it's not my website, it's for a popular one called Imageshack.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|