![]() |
|
[.NET] [TuT][VB.NET] How to add function to your project - 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] [TuT][VB.NET] How to add function to your project (/showthread.php?tid=194917) |
[TuT][VB.NET] How to add function to your project - Soul Collector - Nov 30, 2009 How to add function to your project Tutorial By: Soul Collector Hello to everyone. I saw lots of people asking how to add function to their projects. I saw tons of comments in my "Keylogger Tutorial"how to add "GetWindowState" function. So i decide to show you how to add simple function, its nothing advance .. its just stupid simple function. ENJOY! STEP 1: Open Visual Basic Click File > Clic New Project > Windows Application > Choose name and click OK STEP 2: Now when you done with that i'll from toolbar add Button1 only. STEP 3: Now open the source and under everything(dont leave class) just type: Code Private Function THIS_IS_EXAMPLE_HOW_TO_ADD() As StringNow double click Button1 and write: Code THIS_IS_EXAMPLE_HOW_TO_ADD()And finaly it should look something like this: Code Public Class Form1Thats all 👍 Now you know how to add Function to your project. Cheers Screenshot: [img]http://i46.[censored].com/1zfyb7.png[/img] Download Project: http://www.mediafire.com/?wodc4km5dnj * - jackman - Nov 30, 2009 everybody should know those things, google "vb.net create your first application" ;) -> Hello World! * - Soul Collector - Nov 30, 2009 Yea man. But i get like 20 pm's everything with question how to add function. I even made custom project how to add.. still got pmed * - jackman - Nov 30, 2009 lol, tell them to fuck off and google :P * - Ajax1 - Nov 30, 2009 What's the point of using a function instead of a sub? * - -=C0d3ak=- - Nov 30, 2009 (Nov 30, 2009 08:43 PM)Ajax1 Wrote: What's the point of using a function instead of a sub? It's like dimming something, but with functions you can get more intricate. * - [Eprouvez] - Dec 1, 2009 Wouldn't it be easy creating a sub? Code Public Shared Sub MyMessage(ByVal Message As String)But you could use Functions: Code Public Shared Function MyMessage(ByVal Message As String) ' You could put As MsgBox right here.* - Soul Collector - Dec 1, 2009 Ahh this is just simple nooby example :D * - [Eprouvez] - Dec 1, 2009 (Dec 1, 2009 04:17 AM)Soul Collector Wrote: Ahh this is just simple nooby example :D True haha Cause noobs need to learn the basics haha * - hurmony - Dec 1, 2009 (Nov 30, 2009 08:43 PM)Ajax1 Wrote: What's the point of using a function instead of a sub? Makes shit look neater. * - newbie223 - Dec 1, 2009 function are very useful no function i dunno how make crypters lol * - Ziore - Dec 10, 2009 Noob Friendly :D Thanks * - Cytoplasm - Dec 18, 2009 Very nice TuT :)! What function would edit a timer interval? * - Jeff. - Dec 18, 2009 Just do the same but then dont put the MsgBox but edit this to Timer1.Interval = (Number :D ) Or not xD? * - Estemarilix - Dec 18, 2009 Nice tutorial self explaining and easy for noobs to understeand.Keep it up :) |