Results 1 to 11 of 11

Thread: "Converting" this web page to VB

  1. #1

    Thread Starter
    Member Skootles's Avatar
    Join Date
    Jul 2005
    Posts
    34

    "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.

  2. #2
    Lively Member
    Join Date
    Jun 2006
    Location
    City of Angles. Right Angles.
    Posts
    110

    Re: "Converting" this web page to VB

    this website may be the answer to your question: http://www.codeproject.com/csharp/uploadfileex.asp

  3. #3

    Thread Starter
    Member Skootles's Avatar
    Join Date
    Jul 2005
    Posts
    34

    Re: "Converting" this web page to VB

    Thanks, but that's for C#, not VB..

  4. #4
    Lively Member
    Join Date
    Jun 2006
    Location
    City of Angles. Right Angles.
    Posts
    110

    Re: "Converting" this web page to VB


  5. #5

    Thread Starter
    Member Skootles's Avatar
    Join Date
    Jul 2005
    Posts
    34

    Re: "Converting" this web page to VB

    Again, thanks, but I don't feel like learning C#.

  6. #6
    Lively Member
    Join Date
    Jun 2006
    Location
    City of Angles. Right Angles.
    Posts
    110

    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.

  7. #7

    Thread Starter
    Member Skootles's Avatar
    Join Date
    Jul 2005
    Posts
    34

    Re: "Converting" this web page to VB

    Quote 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.

  8. #8
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    354

    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.

  9. #9

    Thread Starter
    Member Skootles's Avatar
    Join Date
    Jul 2005
    Posts
    34

    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.

  10. #10
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    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?
    Chris

  11. #11

    Thread Starter
    Member Skootles's Avatar
    Join Date
    Jul 2005
    Posts
    34

    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
  •  



Click Here to Expand Forum to Full Width