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

.NET 

[TuT][VB.NET] How to add function to your project

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 String
        MsgBox("HEY EXAMPLE HERE", MsgBoxStyle.Critical, "AHH DAMN")
  
    End Function

Now double click Button1 and write:

Code
THIS_IS_EXAMPLE_HOW_TO_ADD()

And finaly it should look something like this:

Code
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        THIS_IS_EXAMPLE_HOW_TO_ADD()
    End Sub
    Private Function THIS_IS_EXAMPLE_HOW_TO_ADD() As String
        MsgBox("HEY EXAMPLE HERE", MsgBoxStyle.Critical, "AHH DAMN")
  
    End Function

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub
End Class

Thats 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
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
What's the point of using a function instead of a sub?
Ahh this is just simple nooby example :D
Very nice TuT :)!

What function would edit a timer interval?
Nice tutorial self explaining and easy for noobs to understeand.Keep it up :)
Self explained a lot .
Thanks for the Tutorial Mate =D Good Work. BTW thanks for sharing the source code.
Thanks, I found this to be helpful as a beginner who wants to code his own source and not just rip one, so thanks :)
Looks great, now i have learn me something more about functions :).
yes all this can be googled easily though nice work :)
Very good and nice TUT i like it
(Nov 30, 2009 03:47 AM)Soul Collector Wrote:  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

thats not really a function its more of a sub.. a function returns a value
(Nov 30, 2009 03:40 AM)jackman Wrote:  everybody should know those things, google "vb.net create your first application" ;) -> Hello World!

Hello World is not for your own Functions, its just making a label changing the text after you clicked on a button (label1.text = "Hello World")

This tut show you how to add OWN funtions:
Private Function TEST() As String
label.text = "Own Funtion"

So you created the funtion before giving commands in it.^^

Nice tut. Btw
Thanks a lot man. This really helped now. Now I can incorporate what I know about C++ and Vb to make an ultimate Keylogger.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by FhackMar 2, 2022 03:52 AM 4 307 Mar 2, 2022 03:52 AM
Last Post: Fhack
[Shell] by ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™Jun 1, 2018 05:34 PM 1 117 Jun 1, 2018 05:34 PM
Last Post: Erhan
[.NET] by Theo™May 1, 2017 11:46 AM 8 388 May 1, 2017 11:46 AM
Last Post: ZipBag