I can't be sure, as I've never written in VB for DOS, but I just started learning VB5 after knowing QB, and I am fairly sure that, as long as all the code is in one sub, it will work perfectly. Modifications may be necessary for multiple subs, although the individual commands need not change, because variables may not be shared properly (or perhaps other deeper problems that I am as of yet unaware of).