Tutorials

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.

How to Change the Database Password Programmatically?

Submitted by admin on

This tutorial will teach you on how to change the database password of an Access database programmatically using visual basic 6.0.

CN.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DatabasePath & ";Persist Security Info=False;Mode=12;Jet OLEDB:Database Password="current password here" sqlExecStr = "ALTER Database Password " & txtNewPass & " " & txtOldPass & ";" CN.Execute sqlExecStr

Where CN is your database connection variable.

If you use the database before changing the password be sure to close it by adding code like: