How To Make Fade Effect In VB.NET

fade in / out , fade in when your app starts and fade out when your app getting closed .

you just need to add these codes , fade in for form_load and fade out for form_closing.

Public Class Form1
    Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
        For FadeOut = 90 To 10 Step -10
            Me.Opacity = FadeOut / 100
            Me.Refresh()
            Threading.Thread.Sleep(50)
        Next
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        For FadeIn = 0.0 To 1.1 Step 0.1
            Me.Opacity = FadeIn
            Me.Refresh()
            Threading.Thread.Sleep(100)
        Next
    End Sub
End Class
preview -

How To Get The Source Code Of A Website Using Web Browser And HttpWebRequest In VB.NET

this is going to be a simple tutorial , there are two ways to get the source code of a website in vb.net you know what are they so lets start making them

Web Browser

1.open your visual basic 2008/2010

2.create a new project and name it whatever

3.add a webbrowser from toolbox and place it some where else

4.add a richtextbox and a textbox

5.add a button and change the button text property to get source code

6.double click your form and erase everything add this code
Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        WebBrowser1.Navigate(TextBox1.Text)

    End Sub

    Private Sub WebBrowser1_DocumentCompleted(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted

        RichTextBox1.Text = WebBrowser1.DocumentText
    End Sub
End Class
7.debug

preview -



HttpWebRequest

httpwebrequest is fast and more efficient than webbrowser 

1.open your visual basic 2008/2010

2.create a new project and name it whatever you want

3.add a richtextbox and a textbox

4.add a button and name it get source code

5.double click your form and erase everything and add these code
Imports System.Net
Imports System.IO

Public Class Form1

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

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create(TextBox1.Text)
        Dim response As System.Net.HttpWebResponse = request.GetResponse()

        Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())

        Dim sourcecode As String = sr.ReadToEnd()

        RichTextBox1.Text = sourcecode
    End Sub
End Class
6.debug

preview - 


How To Get IP Address From Host Name In VB.NET

This tutorial is about coding a Host To IP Address Program , how this works ? this finds the ip address of the host or i can say it converts the domain name to ip address so lets begin making this

1.open your visual basic 2008/2010

2.create a new project and name it whatever you like to

3.add a button and change its text property to get ip

4.add two textboxes

textbox1 is for host

textbox2 is for ip address

5.add two labels and change their text properties as below

label1 - host : 
label2 - IP Address :

How To Make A Credit Card Determiner In VB.NET

Today, we are going to make a Credit Card Determiner in VB.NET.
First if all open your Visual Studio or Visual Basic, create a new Project, add two text boxes & a button, change the button text property to check or whatever you want.

I recommend you to set your tools like this

How To Delete/Copy/Move A File In VB.NET

Deleting A File

Deleting a file is pretty easy , to delete a file you can use the delete method of System.IO

    Dim DeleteFile As String

        DeleteFile = "C:/users/shim/desktop/test.png"

        If System.IO.File.Exists(DeleteFile) = True Then

            System.IO.File.Delete(DeleteFile)
            MsgBox("File Deleted")

        End If

this is the directory of the file C:/users/shim/desktop/test.png

How To Make A CPU Performance Meter In VB.NET

just thought to write this , this tutorial is about making a cpu performance meter in vb.net so lets get started

1.open visual basic 2008/2010

2.create a new project and name it whatever you want

3.now if you want to change the form text property and other thing just change them

4.add a performance counter from the toolbox and change its properties as given below

Counter Name - % Processor Time
Instant Name - Idle/0
Category Name - Thread

How To Make A Loan Calculator In VB.NET

this tutorial is about making a loan calculator its just a simple one so you dont have to waste alot time to make it so lets get started

1.open your visual basic 2008/2010

2.make a new project and name it whatever you want

3.add 4 labels and change the text property of them as below

label1 - amount
label2 - interest rate
label3 - duration
label4 - monthly payment

4.now add 4 textboxes

5.set the labels and textboxes as given below


How To Make A Simple Task Manager In VB.NET

this tutorial is about making a simple task manager in vb.net . lets get started

1.open visual basic 2008/2010

2.create a new project and name it whatever you want

3.add a listbox

4.add two buttons

5.change the text property of the two buttons as given below

button1 - refresh
button2 - end process

6.set the controls look like this

How To Make Scrolling Text In Textbox And Label In VB.NET

this is a good snippet and this will be very useful for you , lets start

1.open visual basic 2008/2010

2. create a new project

3. add a textbox and a timer

4. enable the timer

5.write something in the textbox (textbox1 > properties > text )