How To Switch Off Your LCD Monitor With VB.NET

this is something very cool , this will switch off your monitor i tested this on LCD so just you can add a button and double click the form and erase everything and add this and try it out

How to Create a Custom Button Control in VB.NET

Reusable classes and controls are a very important part of any object-oriented programming language. More so is the ability to create your own controls or customize existing ones. In this tutorial, we'll learn how to create a custom button using the pre-existing Button class.

Firstly, as for any VB.NET project, launch Microsoft Visual Basic or Microsoft Visual Studio. From the start menu, select "New Project", then "Class Library" from the dialog. Name your project and confirm.

How to Create a Custom Button Control in VB.NET

How To Make A Tabbed WebBrowser In VB.NET

this is going to be very good , i will teach you to make a advanced web browser in vb.net . just create a new project


drag and drop 7 buttons from the toolbox and change the text property as below
button1-back
button2-forward
button3-refresh
button4-stop
button5-go
button6-add tab
button7-close tab

add a textbox


now add a tabcontrol from toolbox and delete all the tabpages(tabpage1>tabpage2))

like this


add a webbrowser and set the webbrowser behind the form

now add this codes i mean just erase everything and add this

How To Make Web Browser Using GeckoFX In VB.NET

gecko is firefox  . we're going to make a fastest web browser using gecko firefox , i will tech you the basics only ok lets get started

first of all download this archive - download

finish downloading and extract the archive in c drive just extract it dont do anything and now create a new project and when form loaded right click in toolbox and select choose items


Window State In VB.NET

there are three window states , they are Minimize,Maximize,Normal so we can do them with code easily you can add 3 button and you can change the text properties to Minimize,Maximize,Normal and add the codes to them

How To Clean Recycle Bin Using VB.NET

this is simple snippet , i am using a function to do this work ok now add this functions and a sub included

How To Get Local IP In C#

this is a simple code to get the local ip on c# first add imports system.net; namespace and add this sub

//Author : Mohamed Shimran
//Blog : http://www.ultimateprogrammingtutorials.blogspot.com

   public string GetIp()
        {
            System.Net.IPAddress[] IP = System.Net.Dns.GetHostAddresses(System.Net.Dns.GetHostName());
            for (int n = 0; n < IP.Length; n++)
            {
                return IP[n].ToString();
            }

        }
now you can add this code to a click event or any other events to get the ip address

How To Save Text Using RichTextBox!

Ok, in this post. I'll teach you how to save your text using richtextbox.

Ok, first get a SaveFileDialog

Make the Filter of the SaveFileDialog to Text File |*.txt

Ok, next get a RichTextBox and a Button

Double Click the Button and type the codes below

What Is SendKeys In VB.NET And How To Use It

just thought to write something what will make alot sense so i am gonna explain what is sendkeys() and how to use it
you can use SendKeys() to type words like they are typed from your keyboard

for instance :

add this code to a button click event or any other click events

process.start("notepad")

Sendkeys.Send("Testing 123 123 123)")

what this actually do is , when you click on the button notepad.exe(windows notepad) will open and automatically Testing 123 123 123 will be typed in the notepad

some people use sendkeys() to make bots

for instance :
you have a game and for example lets take mario and you need to press spacebar to jump so you can use this on a timer and it will do it automatically

sendkeys.sendwait("^{ }")

by the way sendkeys() are super fast than we type

you can also use sendkeys() to automatically type in a messenger or a chat box (skype,yahoo messenger,oovoo,msn,etc)

for instance :

add a textbox and add a button and add this code to click event , you should add this namespace imports system.windows.forms

Randomize()
Dim rand As Random
 Dim sendkey As String = "(" + rand.Next(1, 999).ToString + ")" + TextBox1.Text
 SendKeys.Send(sendkey)