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
everybody should know those things, google "vb.net create your first application" ;) -> Hello World!
[x]Written in C - 6KB binary [x]

[Celsius Loader] https://hackforums.net/showthread.php?tid=3238728
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
lol, tell them to fuck off and google :P
[x]Written in C - 6KB binary [x]

[Celsius Loader] https://hackforums.net/showthread.php?tid=3238728
What's the point of using a function instead of a sub?
(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.
You're nothing but a whiskey Delta
Wouldn't it be easy creating a sub?

Code
Public Shared Sub MyMessage(ByVal Message As String)
MsgBox(Message)
End Sub

But you could use Functions:

Code
Public Shared Function MyMessage(ByVal Message As String) ' You could put As MsgBox right here.
Return MsgBox(Message)
End Function
Ahh this is just simple nooby example :D
(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
(Nov 30, 2009 08:43 PM)Ajax1 Wrote:  What's the point of using a function instead of a sub?

Makes shit look neater.
function are very useful no function i dunno how make crypters lol
Noob Friendly :D
Thanks
Very nice TuT :)!

What function would edit a timer interval?
Just do the same but then dont put the MsgBox but edit this to

Timer1.Interval = (Number :D )

Or not xD?
Nice tutorial self explaining and easy for noobs to understeand.Keep it up :)


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 115 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