I have a background worker process which runs in the background (obviously). If the operation fails, i need a messagebox to pop up as a modal dialog owned by the currently open window (so that it doesnt disappear behind other windows).
My experience tells me that the Form.ActiveForm property does not always return a value.
I need a more reliable way of estabishing which open form should be the owner for the dialog window.
All windows in the application are displayed as modal. So we have a "stack" of windows open at any given time, and i need to return the topmost window on this stack.
Alternatively - if i set the owner to the first window in the "stack", will that result in the dialog being displayed above all other child windows?