I am having problems convert vba code from excel to a vb application.

It is for scanning for user defined file types and then link them to the correct view program.

Is there an easy way in vb to do this action?

I am self taught(guess work mostly - plus great friends who know) and would be grateful for any help.