I have a 'quickadd' type window for doing quick data entry. The window is
launch from a MDI child and is suppose to be a re-sizable popup/child
window. This is an excel type datagrid for doing quick edits. I also have
a quick add detail window that I want to popup to quickly enter the details.
This window has an Copy & Add feature that basically lets the user enter
lots of data and copies common data over from the previous row.
The idea was that I would popup this quick edit excel type window and
instantly popup the detail window. The data is shared between the two but
the quick add detail window only shows the current row. As the user hits
the Copy & Add button the row is basically copied to the large grid window.
When the user is done quick-adding they can close the response window and do
any edits. Closing that window saves the data.
My problem is I can't seem to get the quick add window to open on top of the
large edit window. It basically never draws itself until I close the quick
add. All my funtionality with the data works fine, I just can't see both
windows at once. I am opening my windows as such:
MDIChildWindow
Create WinQuickEdit (pass some logic)
WinQuickEdit.Sh owDialog(this);
WinQuickEdit
Load Event fires and calls AddMethod
AddMethod
Create WinQuickAdd (pass some logic)
WinQuickAdd.Sho wDialog( this ); --> at this point
I see the winQuickAdd
WinQuickAdd.Add Row;
WinQuickAdd.Add Row;
WinQuickAdd.Clo se(); --> at this point I
see the winQuickEdit with 2 new rows.
Any ideas? I have tried playing with the Show and ShowDialog and onTop
properties but can't seem to get it to work the way I would like.