By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,515 Members | 1,042 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,515 IT Pros & Developers. It's quick & easy.

Q: labels

P: n/a
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

Apr 6 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Can't you assign the DialogResult in the click event of the label?
What problem are you having?

Apr 6 '06 #2

P: n/a
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

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Can't you assign the DialogResult in the click event of the label?
What problem are you having?

Apr 6 '06 #3

P: n/a
D'OH!

Ok, just realised what you meant Chris!

Thanks. Problem solved.
"G .Net" <no********@email.com> wrote in message
news:T_******************************@pipex.net...
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

"Chris Dunaway" <du******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Can't you assign the DialogResult in the click event of the label?
What problem are you having?


Apr 6 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.