Welcome! and rules
Joel on Software
Forms changing focus
I have a main form which launches a small form with a few options for a report. The user picks their options, then clicks the show report button. At this stage, I open another form which displays the form, and close the small form with the options.
Seems like all you need to do is (a) get a reference to the form you want to receive the focus after your options form is closed, and then (b) call the Activate() method on it. Step (a) is the tricky part. In VB6, the Forms collection would make this much easier... you'll probably have to implement your own collection to keep references to open forms and decide which one should get the focus.
There might be an easier way to do this. Are you creating the report from from your "options" dialog? If so, why not create the report from your main form instead?
Thanks Bryan, that sounds like the way to go for sure, I'll give it a go.
Fog Creek Home