eHow launches Android app: Get the best of eHow on the go.
Top 48
A listbox is very common control that you see in many applications. It gives the user a great view of a list of items. Here is how you add items to a listbox in VB.net.
As many complaints are you can level against Microsoft, you really can't find much to fault them concerning most of the programming languages and development environments they provide under their...
A checked listbox is a great way to allow users to assign items in a list to another specific selection. However in between the selection from one choice to another you must clear that checked...
A good way to make sure users do not click buttons on a form until they actually enter something is to keep it disabled until text is entered. Here are the steps to do just that.
SQL Server is a great database to use and easy to connect to using VB.net. Here is how you do it.
VB.net has a nice built in function that allows you to pass in two numbers and return the greater of the two. Here is how it works.
There are a large number of browsers to choose from but did you know you can create your own in VB.net? VB.net gives you all the tools you will need to create your own browser. In this example I...
Here is some great examples on how to program functionality to the VB.net listbox during runtime.
Software developers who use the current Microsoft Visual Studio .Net programming languages of Visual Basic .Net (VB.Net) and Csharp .Net (C#) need to be able to find code examples online. Many...
Programming in VB.NET to execute your AutoCAD applications is a complicated process. You must become familiar with Microsoft's Visual Basic, AutoCAD's ObjectARX and AutoCAD itself as well. Here is...
Functions are a great way to reuses a calculation or process that returns an answer and that you will use over and over again. There is no need to rewrite the calculation everytime you need it,...
In some calculations you only want the integer portion of a number that would return decimals. Sometimes you do not want to round this number at all. So for example, whether you have 2.3 or 2.7...
VB.net offers a great function that allows you to join all of the members of an array into one string. Here is how it is done.
A combo box also referred to as a dropdown box is a great way to give the user a variety of options to select from and then just display the one item that they have selected. Here is how you add...
Many programs that you will write will have the need to display to the user the current date and time. VB.net gives you the ability to retrieve this information failry easily. Here is how you...
Now that you can fill up your listbox in VB.net with a bunch of goodies, how do you erase what you have in there in case the user needs to start over? Here is how you can clear all of the...
VB.net has introduced the Try-Catch-End Try statement which is to replace the On error statement. It allows you to execute some code and should an error occur it traps that error and then sends...
Who doesn't like having access to help within their applications. Here is a fast and easy way you can add Microsoft's searchable help directly to your application.
If you've ever used or created applications using Visual Basic, you know how flexible and seamless they can be. In fact, if you have experience as a web or program developer, you might want to...
Loops are a common programming technique. Most applications are made up primarily of loops. These are sentences in your code that tell the program what to look for and what to do. Writing loops in...
VB.NET is one of the programming choices for web-based applications as well as Windows programs. The .NET Framework is a Microsoft platform providing free code to programmers, and VB, or Visual...
You are judged for that job before you ever walk in through the door. Your resume is a bigger key to you getting that job before you ever meet anybody. Here are some tips to help fine tune that...
This is easy if you have done some basic development. VB.net has a nice event for controls called the "EnabledChange" event. This fires when the controls enable property has been...
There will come times when you are searching a listbox based on the text of the item as opposed to the index. Here is how it is done.
A select-case statement is a great way to perform a logical test that might have multiple directions if found true or false. You could write a bunch of if-then-else statements but that could be...
This How-to assumes that you have read and understand my original How to article "How to write a function in VB.net". I will use the same code from that project in this one and show how...
I am sure you have seen other programs where you click inside a textbox and anything typed in there gets highlighted so if you start to type in erases what is in there and replaces it with what...
VB.net gives you many looping capabilities. In this How-to I will show you how to use the While...End While loop.
A nice feature of VB.net is the Try Catch statement which replaces the On Error statment of previous versions. Here is how you use it.
Subroutines give you the ability to write code that can be used over and over again in a program. This saves you time from writing the same code more than once. In this example I am writing a...
An absolute value of a number is that same number always positive. In other words the absolute value of -3 is 3. In certain calculations even though you may get a negative number you are only...
VB .net offers a great way to return the number of days in a given month for a given year. This comes in handy if you find yourself doing calculations based on days. Here is how you calculate...
This is as about as easy as it gets to programming. The ability to drag and drop controls onto a form. In this example I am going to show you how to add a textbox to a blank form in VB.net.
With a few lines of VB.net code you can write a simple program that will allow you to convert fahrenheit to celsius. Here is how it is done.
A good user friendly tip when you are developing software is to highlight text in a textbox when the textbox has the cursor focus. Here is how you do it.
A lot of times during run time you will change the backcolor of a textbox to signify to the user when a control is enabled and disabled. Here is how you do it.
A treeview control is similar to a listbox however it has items called nodes. A treeview control is what you would see in your windows explorer to search directories. Here is how you can add...
The progress bar is a great tool to let users know of a process that is running and how much longer it will take to complete. Here is a simple example as to how to program the progress bar.
Every windows application, or practically every windows application has menus. If you are writing a VB.net application, here is how you can add one.
The timer control allows you to set specific time intervals until some code has to be executed. Here is how you program the timer control in VB.net
One of the great benefits of working in a .Net environment is the ability to create really anything from an object. Although this particular example is very basic, it will give you an...
Many VB.NET coders miss the simplicity of the VB6 App object. With a little bit of code, many of the App object's properties can be replicated in VB.NET. This article shows you how to replicate...
A function is a great way to obtain calculations of any kind by passing a value and then assigning a variable to the actual function name so it seems like an easy transition. You can also reuse...
If you find yourself in needing to convert a decimal number into a hexadecimal while developing a piece of software you can use the code in this example to set up an array so you can more easily...
In many instances I have had to write data directly from a VB.net application to an excel spreadsheet. It provides a way for the end user to do whatever it is they need to do to that data as how...
C#, which is also referred to as C Sharp, is a programming language that was developed by Microsoft. Visual Basic is also a programming language that was developed by Microsoft. C# is a bit more...
Microsoft Visual Basic is an object-oriented programming language for creating software, components, Web controls and more for Windows. While standard Visual Basic has been superseded by VB.NET...
When programming in Visual Basic (VB), it's important to understand how to connect and query a database server. Database servers are the central components for dynamic content, and they are also...