Set the parent window of the JRFileoperation dialog box.
FileViewer1.FileCommand.ParentWnd (RHS As Long)
Set this propertie to the hwnd value of your form.