Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[TUTORIAL] making a simple pinger in VB [TUTORIAL]

Hello, my name is UMAMI and I am new to visual basics, and have not seen too many good tutorials on HF, so I decided to post on how to make a simple VB pinger or dos. this tut WILL include pictures to be more noob friendly!
~BLUE WORDS ARE IMPORTANT~

Requirements
-any version of VB preferably 2008 + -- http://www.microsoft.com/express/vb/Default.aspx
-at least a little bit of knowledge in coding
-creativity

after you have installed your selected version of visual basics, run it.
once the client has opened, head over to the top left corner where it says file and click "New Project..." and select the settings like so.
Spoiler (Click to View) and press continue

You should now have a blank form🤗
you can rescale this form to the size you want, but being that it is just a simple program..lets start smallish. On the left side of the Vb client there should be a toolbox filled with tools that you can use. Lets start by finding the TextBox tool (the tools are in alphabetical order). Place the TextBox some where near the top of your form and make it not too big.
Now look on the ToolBox for a tool called Button, it should be near the top of the list. Once you found it, place two buttons onto your form.
single click on Button1 and follow the settings as shown
Spoiler (Click to View) and do the same to the second button, but name it "Stop".

Now scroll down the ToolBox until you find a tool named Timer and place it to the side of your buttons(the Timer won't be visible once this is all finished). Make sure on the right side that the timers "Enabled" is False, and to set the Interval to 250.

HERE COMES THE ACTUAL CODING PART!
double click on all of the tools on the form, including the time which is at the bottom below the form, and make the code look exactly like this
Spoiler (Click to View)

if you would like to just copy and paste the whole code here it is
Spoiler (Click to View)

I'll add a second spoiler with the same code to explain each bit!
Spoiler (Click to View)

TO finish up you can test your new application by pressing F5, customize it a bit, or save and exit VB and enjoy your new but SIMPLE pinger👍


Post if you liked it or if you feel like I should add/change some bits...
THANK-YOU <3
I'll test this out now :P

Thanks m8! I'll come back to show pics and tell you how it worked out
Okay thank-you ^.^
and please leave constructive criticism, but not too much.. I am still new to VB <3
Hey bro, This should be the coding for the Timer1.

Shell("Ping " + (TextBox1.Text + "-1" + "65000"))

Add the )) at the end. not just )
(Nov 4, 2009 02:28 PM)Amped- Wrote:  Hey bro, This should be the coding for the Timer1.

Shell("Ping " + (TextBox1.Text + "-1" + "65000"))

Add the )) at the end. not just )

sorry I must have clipped it out xD thank-you and I'll edit it in right now!
other than that, how was it?
(Nov 4, 2009 02:32 PM)umami smokes shisha Wrote:  sorry I must have clipped it out xD thank-you and I'll edit it in right now!
other than that, how was it?
Good, it's good :P
Just built mine :P I'll show you a pic in a min.

[IMG]http://i34.[censored].com/24ex1tc.png[/IMG]
There it is :P
very nice design!
any one else try this?
I am having problems , i have check twice ,

i copied and pasted the code , but i wil check again and psot back , otherwise great tut xD

EDIT : Its all fine now , I has my buttons named as Button11 not Button1 xD

Thanks :)
what kind of a problem is it?
make sure you don't copy and paste the one with the comments but the one above it :p
or just copy the bits you need to add and paste where needed.
Worked out nicely!! =) Great Tut 😉
Thanks, I'm learning vb.net too and this is handy!
Shoudlnt this
Quote:Shell("Ping " + (TextBox1.Text) + "-1" + "65000")) //sends ping to the IP you enter into the TextBox

be
Code
Shell("Ping " & TextBox1.text & " -l" & " 65000")
Very nice , Thank You!!
I'm just wondering, is there any way to get the "result" (latency in this case) to a textbox?
(Nov 9, 2009 05:51 AM)TheY CaLL Me SlicK Wrote:  Shoudlnt this
be
Code
Shell("Ping " & TextBox1.text & " -l" & " 65000")

I am still new to VB but perhaps both methods work? maybe one better than the other... but I once I learn a bit more I am going to post a tut on how to make a more effective pinger ^.^

thanks for the comments people!

EDIT: Although no one has posted about it yet, sorry for not putting the coding in code tags! It won't let me edit my first post =\


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by ioncanon667Apr 15, 2016 04:13 PM 2 185 Apr 15, 2016 04:13 PM
Last Post: Odus
[.NET] by BigMreNov 22, 2015 07:22 AM 2 131 Nov 22, 2015 07:22 AM
Last Post: BigMre
[.NET] by oRequiemJul 20, 2014 12:48 AM 9 300 Jul 20, 2014 12:48 AM
Last Post: oRequiem