ITSourceCode.com

Free Source Code and Tutorials

Custom Search

Category: Visual basic Tutorial

36-Reading Text Files

The My.Computer.FileSystem object has a method that allows you to read a text file and it is called the ReadAllText.  The encoding file can be specified if the file contains an encoding text such as ASCII or UTF-8.   You need to specify the encoding file , if you are reading from a file with an extended […]

Share this

35-Try Catch

In programming, there are Exceptions that handle errors and other exceptional events. As a programmer, it is the best way to used it to deal with unhandled exceptions. In Visual Basic, there is a try catch that handle errors. Try…Catch statement composed of a Try block and followed by one or more Catch clauses, which stated the handlers for […]

Share this

34-Splitting Strings

Split is a function that separates Strings. It receives a string or character delimiter that parses and separates the string into parts.   Example: < View plain text > vb Dim textLine As String Dim textArray() As String ‘set a line of text textLine = "UserName1 Password1 UserName2 Password2" ‘pass it to the array and split […]

Share this

33- Arrays

What is an Array?  Array is a sequence of objects that has similar type and size. Every object inside an array is defined as the element of an array. It’s either you have an array of strings or characters, integers or any that has defined data type.   The main purpose of an array is to organize identical data together […]

Share this

32- Auto Typer

Auto Typers are very common in the web and there are instances that some people charge money for them.   Today, I will teach you how to make an Auto Typer. With this, you can create a customized Auto Typer that you can share  with your friends. This tutorial will cover how to Send Keys.   Let’s begin: Open the […]

Share this

31-Web Browser

In this tutorial we will create a simple webbrowser in visual basic. In the toolbox there is a tool called ‘WebBrowser’  that  designed to output web pages.   So let’s get started: Open the Visual Basic, select “File” on the menu, hit new and create a new project. The New Project dialog will appear. Select […]

Share this

30- Download and Run File

In this tutorial, we will learn on how to download and run a file in Visual Basic 2008.   Let’s begin : Open the Visual Basic, select “File” on the menu, hit new and create a new project. The New Project dialog will appear. Select “windows” in the project types, hit the “windows form application” […]

Share this

29- Comments

In Visual Basic, you often encounter the comment symbol (‘) as you read the code. This symbol tells the  compiler to ignore the text following it. Comments are brief explanatory notes added to the code for you to know what the codes tells about. A brief comment that describes the functionality of the method is a good […]

Share this

27- FTP Application

In this tutorial, we will learn on how to create FTP Application.   Let’s Begin. Open the Visual Basic, select “File” on the menu, hit new and create a new project. The New Project dialog will appear. Select “windows” in the project types, hit the “windows form application” in the templates and hit “ok“. Design […]

Share this

28-ByVal and ByRef

In this section, we will learn how to use ByVal and Byref to Subs and Function arguments.   By Value(ByVal) means that you can set a copy of a variable to your Subroutine and it is a default when you’re passing variables over to a function or Sub.   Let’s see the example below. < View plain text > vb Dim Num1 […]

Share this
Page 2 of 512345
ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!