As a rule of thumb for the future, it is not sufficient to say that "I am using VB"

We would need to know what version.

VB6?
VB.NET - if VB.NET, what version - 2003? 2005? 2008?