Hello all, i'm trying to make a routine that sets the icon.
I want to load it before i show the form.

I know the name of the form.

I tried:
Sub Load_Formicon(ByVal inp As String)
inp.Icon = LoadResPicture(bm_dll.bmS_icon + CStr(VScrollPic.Value), 0)
End Sub

Load_Formicon("MS_ParentDummy")

and:
Sub Load_Formicon(ByVal inp As form)
dim myform as form

set myform = inp
myform.Icon = LoadResPicture(bm_dll.bmS_icon + CStr(VScrollPic.Value), 0)
End Sub

Load_Formicon(MS_ParentDummy)

Can someone tell/explain how i should this?