Ok, that was the issue, but i still can't seem to get the progress to appear "centered" in the owner. What should the StartUpPosition be for the form inside my ActiveX EXE?
Here is my snippet:
' Make progress form stay on top of owner
lResult = SetParentForm(fProgress.hwnd, fOwner.hwnd)
' Show the progress dialog
fProgress.Show
' Center form on owner (if specified)
If Not (fOwner Is Nothing) Then
If fOwner.Visible Then
fProgress.Left = (fOwner.Width / 2) - (fProgress.Width / 2)
fProgress.Top = (fOwner.Height / 2) - (fProgress.Height / 2)
End If
End If
clarkgriswald
| Tue, 04 Dec 2007 22:16:00 GMT |