Tutorials

Database Programming Made Easy

Submitted by admin on

In this tutorial I will discuss to you on how you can access the database easily. I came across this idea because this is also my problem when I started working with database programming.

I hope that in one way or another I can help you in your journey to the world of programming. Programming is fun and easy if you just simply devout your time with it. I cannot stress enough how easy programming is if you only read an online tutorial like this.

How to Get Value from Selected Item in Listview

Submitted by admin on
I am struggling before on how to get value from selected item in a listview. As you've seen in my Hotel Reservation System (VB.NET Version) I use the following code to get the value from a Listview.
  1. Dim FolioNumber As String
  2. For Each sItem As ListViewItem In lvList.SelectedItems
  3.      FolioNumber = sItem.Text
  4. Next

How to Prevent Code from Executing its Event when Form is Still Initializing

Submitted by admin on
When I try to convert hotel reservation system from visual basic 6.0 to visual basic.net 2008 I found a lot of error in the even log of VB.NET. One of the important logs I found is on how to prevent code from executing its event when forms is still initializing.

Dealing With Quotes in Text Fields

Submitted by admin on

The following tutorial is taken from the internet when I started working with my Library System using MS Access.

I googled this topic to find the author but I can't find him.

This tutorial will handle a text field that contain a value with apostrophe, single or double quotation.

I added it here so other programmer will benefit from this code. You can use this in visual basic or MS Access program.

 

When building an sql statement that contains text fields it usually happens

How to Create a Splash Screen in VB.NET

Submitted by admin on

In Visual Basic 6.0, you need to insert a code in your startup object in order to run your splash screen or make your splash screen form as the startup object. In VB.NET, there is an option in the My Project Properties to specify the startup object and the splash screen. You can also insert a code to delay the splash screen.

First you need to add a splash screen to your project.

 

 

After that, open the project properties.

How to Sort Date in Listview Control

Submitted by admin on

As we know that we cannot sort the column in listview that contain a date value. There is however a work around in Microsoft Website on how to do this. This can be found at http://support.microsoft.com/kb/170884.

Although it will solve your problem but after testing it I found out that it cannot sort the date by descending order. Of course you can add another code to do it. But it will again add another line of code.