Roland,
I don't really know what you're trying to do, but if either one of those forms should be modal, you can make it that way by calling it as a Dialog, like this (not sure of the VB syntax, but this should be close):
Dim MyForm As New MyForm()
MyForm.ShowDialog()
MyForm.Hide()
Also, you can test the return results of a Dialog if you have set AcceptButton and/or CancelButton in your form. There's also a property called FormBorderStyle that can be set to FixedDialog, which will automatically hide your form, so you don't need to do it (these all show up in the form's property sheet).
Dim MyForm As New MyForm()
if MyForm.ShowDialog = DialogResult.OK Then
-- do some processing here
~~Bonnie
>Hi Bonnie,
>
>Now that the form is hidden, how do I get it to display again?
>
>I used the following code to call a second form, when I close the second form how do I show the first form again? What events are fired?
>
>Should the Me.Hide() be placed here or in an event? If an event; what event?
> If Not bLoginError Then
>------>>>> Me.Hide()
> Dim MainMenu01 As New MainMenu01()
> MainMenu01.Show()
> End If
> End Sub
>
>What event should the code be placed to show the first form again when the second form is closed? Is the event in the first or second form?
>
>Thanks
>Roland
>
>==========================================================================
>
>>Roland,
>>
>>Try using me.Hide()
>>
>>~~Bonnie
>>
>>
>>>Hi,
>>>
>>>WinForms vb.net
>>>
>>>How do you hide or not visible a form?
>>>
>>>I tried me.visible = False me.enabled= False
>>>
>>>Neither worked.
>>>
>>>Also sometimes I get a message when I close my project.
>>>
>>>Message: Modified Form has been modified outside of the source editor. Reload Form?
>>>
>>>Why do I get this mesaage sometimes? Do I have a problem?
>>>
>>>Thanks
>>>Roland