3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Worldwide microcontroller link for under $20

Step 7Write some VB.Net code

Write some VB.Net code
I could have compiled the code and made this program available as a compiled .exe but learning some VB.Net is so incredibly useful that it is worth going through it step by step. If you are running this on two different computers you can Build the program into an .exe which creates a little setup program which can be installed on the second computer. Or you can put VB.Net on both computers and run the programs from within VB.Net

Let's assume you know how to open a new VB.net project from step 7 and 8 of http://www.instructables.com/id/S1MMU2XF82EU2GT/

On the blank form let's add the following components from the toolbar and put them on the form in the locations as shown. For the labels and the textboxes, change the text property (over on the lower right) to what is needed. Don't worry about the settings for the timer - we will change them in the code but do make sure to put a timer in. You can move things around and there are no real rules about location. The big text box is a RichTextBox and the smaller three are ordinary Textboxes. In terms of order we are starting at the top of the form and moving down. If you leave something out there will be an error in the code which should give some sort of clue.

Please pick a random filename for Textbox3 - this is the name of your unique group of picaxes on the ftp server and obviously if we all use the same name then data is going to get all muddled!

Sorry about the dashes in this table - putting in spaces loses the formatting in the table.

Toolbox object-------Text-----------------------------------------Notes

Label1------------------Picaxe Communications
Label2------------------FTP Status
Label3------------------Status
Label4------------------Picaxe Registers
Label5------------------Register 0-13
Label6------------------Value 0-255
Label7------------------FTP link filename
Textbox1----------------0----------------------------------------------0 is a zero not an O
Textbox2----------------0
Textbox3----------------Myfilename-------------------------------Change so no clashes!
Button1------------------Modify
Richtextbox1
Picturebox1
Picturebox2
Timer1
« Previous StepDownload PDFView All StepsNext Step »
1 comment
Jul 17, 2011. 7:54 PMmarc_is_curious says:
1st of all:
thanks for this interesting tutorial !

unfortunately (on this tutorial's behalf)
i am a macintosh user ....
i managed to rebuild the visual basic part via word
(via "tool/macro/visual basic editor")
but
receive the message "invalid outside procedure"
when running the script.

dioes anyone know how to translate
the visual basic part into "mac-able" code
or
use an alternative way to handle the
internet connection?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
29
Followers
3
Author:Dr_Acula