Re: VB2005 The right event
You don't need an event. You display the dialogue by calling ShowDialog and it doesn't return until the form is closed. That means you just perform your action immediately after ShowDialog.
That's assuming that you want a modal dialogue. If not then you would handle the Closed event of the second form, not an event of the first.
Re: VB2005 The right event
VisibleChanged should work, else you could include the things you want to do following the code that hides your form.
Hope that helps.
Re: VB2005 The right event
Thank you.
Once again you guys helped me very very much.
I did the following:
VB Code:
Private Sub lblLand_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles lblLand.LinkClicked
frmLanden.ShowDialog()
Call FillDataset()
End Sub
And it works perfectly
Re: VB2005 The right event
Not that it will do any harm but note that the 'Call' keyword doesn't really serve a purpose in VB.NET. I have heard it said that it improves the readability of code but I can't say that I see that myself.