there is no stupid program, (only stupid programmers ;-). You can check the delphi “simplest” example which explains pairfectlly what you should do.
Delphi is quite similar to Visual Basic so you will have no problem (nevertheless the fmod fuctions are the same for all the languages)