Q: labels

  • Thread starter Thread starter G .Net
  • Start date Start date
G

G .Net

Hi

Is there any way I can a DialogResult with a label click on a form? That is,
I would like to be able to close a form when a label is clicked and also
send, for example, DialogResult.OK to the calling routine for the form e.g.

Dim f As frmMyForm = New frmMyForm
If f.ShowDialog = DialogResult.OK Then
.......
End If

Thanks in advance
 
Can't you assign the DialogResult in the click event of the label?
What problem are you having?
 
Hi Chris

You'll have to forgive my ignorance but I'm not sure how to do that. I can
generate the code for the click event but I don't know how to take it from
there.

G
 
Back
Top