In a lot of VB code samples I see, paths for icons, graphics, databases, etc., are "hard-coded" into the control at design-time ("i.e. C:\VB6\Biblio.mdb").

But if the user decides to install the program on the D: drive, this will be a major problem. What's the right way to make sure your program will find its files no matter what drive or folder the user decides to install in?