1. message box:
Code: Select all
MsgBox("TextHere")
Code: Select all
Dim Responce As Integer
Responce = MsgBox("Are You Sure", vbYesNo, "DELETE")
If Responce = vbYes Then
MsgBox(" You Clicked Yes!")
Else
MsgBox("You Clicked No!")
End If
Code: Select all
vbYesNoCancel
vbCritical
vbExcalmation
vbInformation
vbMsgBoxHelp
vbMsgBoxRight
vbOkOnly
vbRetryCancel
vbDefaultButton1
vbDefaultButton2
vbDefaultButton3
vbApplicationmodal
vbQuestion
vbOkCancel
vbAbortRetryIgnore
3. start a process 2 examples:
Code: Select all
Process.Start("mspaint")
Process.Start("www.hackerscorner.co.uk")
Code: Select all
Dim RunningProcess As System.Diagnostics.Process = Process.GetProcessesByName("taskmgr.exe")(0)
RunningProcess.Kill()
5. delete a registry key:
Code: Select all
My.Computer.Registry.LocalMachine.DeleteSubKey("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot")
Code: Select all
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWARE", True)
regKey.CreateSubKey("MyApp")
regKey.Close()
7. start a timer:
Code: Select all
Timer.Start ()
Code: Select all
Timer.Stop ()
Code: Select all
Me.Close ()
Code: Select all
Me.Hide ()