Hi!

I just recently stared working with VB.net and I've noticed several differences. One of them is confusing me.
It has to do with the basic handling of forms.

In my case I have a main form where I have a button which when a user activates should bring up another form and hide the main one.

The code behind that command button look like this:

If radCMBO.Checked = True Then
Dim frmCMOB As New frmCMOB()
frmCMOB.show()

ElseIf radCMBB.Checked Then
Dim frmCMBB As New frmCMBB()
frmCMBB.show()

Else
Dim Front As Integer
Randomize()
Front = CInt(Int((2 * Rnd()) + 1))
If Front = 1 Then
Dim frmCMOB As New frmCMOB()
frmCMOB.show()

Else
Dim frmCMBB As New frmCMBB()
frmCMBB.show()
End If
End If

Dim frmCMOB As New frmCMOB() 'this opens one of my new forms
frmCMOB.show()

but what should I write in order to close my main form after opening a new without closing the whole app? The user should be able to return to the main form
frmCMBB and frmCMOB

Any help would be appreciated..
Thx.
-D