Click here to Skip to main content
15,889,867 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to open a new form and close recent form. But i have some problem with close recent form.

When new form is open, recent form cant closing
When new form is close, recent form is closed too

Sorry for my bad english...

Thanks before.

What I have tried:

VB
Me.Close()

        If rbOrtu.Checked = True Then
            With DataOrtu
                .id.Text = Me.id.Text.Trim
                .lblNoFormulir.Text = Me.lblNoFormulir.Text
                .ShowDialog()
            End With
        Else
            DataWali.ShowDialog()
        End If
Posted
Updated 14-Feb-17 0:10am

1 solution

If I see it right you want to open a Dialog from your active Form.
In this case you only could hide your form - don't Close it.
 
Share this answer
 
Comments
Member 12023878 14-Feb-17 6:18am    
The main form also Hide with recent form
Ralf Meier 14-Feb-17 6:26am    
I'm sorry ...
If this doesn't match to your requirement you should give us much more Information.
Please use "Improve Question" for this.
What I wnat to know is :
- what do you want to do ? There is a difference between a Dialog and a seperate Form.
- where is this Object instanced ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900