Re: [VB6] TaskDialogIndirect - Complete class implementation of Vista+ Task Dialogs
Yes; specify the window (e.g. Me.hwnd when calling from a Form/UC) as the parent with .ParentHwnd, and use the TDF_POSITION_RELATIVE_TO_WINDOW flag in .dwFlags;
Code:
With TaskDialog1
.Flags = TDF_POSITION_RELATIVE_TO_WINDOW
.ParenthWnd = Me.hWnd