![]() |
|
[.NET] [TUTORIAL] making a simple pinger in VB [TUTORIAL] - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] [TUTORIAL] making a simple pinger in VB [TUTORIAL] (/showthread.php?tid=177619) |
[TUTORIAL] making a simple pinger in VB [TUTORIAL] - umami smokes shisha - Nov 4, 2009 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! 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 * - Amped- - Nov 4, 2009 I'll test this out now :P Thanks m8! I'll come back to show pics and tell you how it worked out * - umami smokes shisha - Nov 4, 2009 Okay thank-you ^.^ and please leave constructive criticism, but not too much.. I am still new to VB <3 * - Amped- - Nov 4, 2009 Hey bro, This should be the coding for the Timer1. Shell("Ping " + (TextBox1.Text + "-1" + "65000")) Add the )) at the end. not just ) * - umami smokes shisha - Nov 4, 2009 (Nov 4, 2009 02:28 PM)Amped Wrote: Hey bro, This should be the coding for the Timer1. sorry I must have clipped it out xD thank-you and I'll edit it in right now! other than that, how was it? * - Amped- - Nov 4, 2009 (Nov 4, 2009 02:32 PM)UMAMI Wrote: sorry I must have clipped it out xD thank-you and I'll edit it in right now!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 * - umami smokes shisha - Nov 4, 2009 very nice design! any one else try this? * - Entrepreneur - Nov 4, 2009 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 :) * - umami smokes shisha - Nov 4, 2009 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. * - Ak l 3 G E N D - Nov 8, 2009 Worked out nicely!! =) Great Tut 😉 * - Resident - Nov 8, 2009 Thanks, I'm learning vb.net too and this is handy! * - TheY CaLL Me SlicK - Nov 9, 2009 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")* - Viperx28 - Nov 9, 2009 Very nice , Thank You!! * - TehShrink - Nov 9, 2009 I'm just wondering, is there any way to get the "result" (latency in this case) to a textbox? * - umami smokes shisha - Nov 9, 2009 (Nov 9, 2009 05:51 AM)TheY CaLL Me SlicK Wrote: Shoudlnt this 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 =\ |