just like CommonDialog1 ocx control replace to GetOpenFileName Lib "comdlg32.dll"