How To Change Extensions In VB.NET

In this tutorial i'm going to tell you how to change file extensions.
     Dim type As String = ".mp4"
        MsgBox(TextBox1.Text + " is changed into a " + type + " file.")
        Dim oldFile As String = Mid(TextBox1.Text, 1, Len(TextBox1.Text) - 4)
        FileCopy(TextBox1.Text, oldFile + type)
How to use it:
You have a form containing: 2 buttons, 1 textbox (or combobox)
When you click button one you can say it must open a openfiledialog:
Dim ofd As New Openfiledialog
If ofd.showdialog = dialogresult.OK then
TextBox1.Text = ofd.filename
End If
If we click the button, a openfiledialog will appear and we can choose a file name and if we click on 'ok', then the textbox will contain the filename of the openfiledialog.
Now double click on the other button and fill in the code above.
That's it!

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 )

How To Make A Application Launcher In VB.NET

this is a simple thing this works like run which you can find on windows xp,windows vista,windows 7,etc


you can use this to open programs,folders,documents and website etc

so lets get started

1. open visual basic 2008/2010

2. create a new project

3. name it whatever you want

4. add 3 buttons 

5. change the text property of them as below

button1 - ok
button2 - browse
button3 - cancel

6 . add a textbox and change property multiline - true

7. add a openfiledialog

8. make your form look like this





9. double click your form and add this code
'Author : Mohamed Shimran
'Blog : http://ultimateprogrammingtutorials.blogspot.com
Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        OpenFileDialog1.FileName = " "
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        Me.Close()
    End Sub

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

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        OpenFileDialog1.ShowDialog()


    End Sub

    Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles OpenFileDialog1.FileOk
        TextBox1.Text = OpenFileDialog1.FileName
    End Sub
End Class

10. now debug and type commands that you usually do with windows run and press ok , it'll work

for example just type http://www.google.com in the textbox and press ok then your default browser will open and you will be navigated to website



How To Make A Simple Web Browser In C#

This is my first c# tutorial and its about making a web browser . this web browser doesnt have advanced controls this is just a simple one

lets begin making a simple web browser

1. open your visual c# 2008/2010

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

3.edit your form properties like text and icon

4. now go to toolbox and grab web browser control inside the form


How To Make A Drop-Down Effect In VB.NET

oh after a little bit time i am here to write a tutorial i am glad about it , this tutorial is about making a drop down effect in visual basic . net its pretty simple , lets make it

1 .open your most favorite visual studio 2008/2010

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

3 . add a button

4 . add a panel

5 .set the panel size to 426, 220

6 . set the form size to 466, 305

7 . make your form look like this

How To Make A Sharecash Mirror Link Creator In VB.NET

sharecash is a best PPD (pay per download) website where you upload your files and get paid for downloads now you gonna learn how to make a sharecash mirror link creator in vb.net its pretty easy but its very useful it works like this for example you have a link http://verified-download.com/file/0OBo2 and you want to change that link or we can say generate mirror links

so lets get started as usual just open your favourite visual basic 2008/2010 and make a new project and name it whatever you want and form will load and go to toolbox and add two textboxes and a button textbox1 is for the original link and textbox2 for the mirror link now go to button1 properties and change the text to create mirror link or whatever you want and at last just double click your form and delete everything and paste the code

How To Use Themes In VB.NET : Using Ghost Theme

today i am up with a small thing i know all of you hate the windows GUI so i have decided to write here how to use themes in vb.net nowadays many programmers make themes and release them on the internet ok lets get started

just open your favourite visual basic 2008/2010 and make a new project and name it whatever you want now your form will load and now just add a new class