One that isn't shown in the books I have. It worked perfect.
Thanks Randy.
> Robert,
> You need to store a persistent reference to the
> instructions form for form2. In this way, you can access
> the instruction form's Close() method.
> For example
> Public Class myForm
> Private frm As myInstructionForm
> Private Sub launchInstructions()
> Me.myInstructionForm = New myInstructionForm()
> Me.myInstructionForm.Show()
> End Sub
> Private Sub closeInstructionForm()
> Me.myInstructionForm.Close()
> End Sub
> End Classs
> For resizing, use the Anchor and Dock properties for the
> controls you want to adjust automatically when the form
> resizes.
> Randy
>>-----Original Message-----
>>First, I have 2 main forms in my program. The second is
> called from the
>>first as a modal form.
>>form1
>>- instructions1
>>- form2
>> - instructions2
>>I also have separate forms to display instructions for
> each of the main
>>2. Since I want the user to be able to switch back and
> forth between the
>>instructions and the form they are on I made those 2
> nonmodal.
>>When exiting the modal form2 I want to close the
> instructions2 form if
>>it has been opened. So far, I have not been able to
> discover the
>>commands to make it happen.
>>Second, when the form runs and I try and resize it, it
> only resizes the
>>form background, hiding other items on the form. I have
> not found the
>>correct controls so far to either make the entire form
> plus components
>>shrink or grow together, or at least give scroll bars to
> be able to
>>display the other area's.
>>Can someone point me in the right direction for both
> please?
>>Thanks
>>--
>>Robert Johnson
>>.