|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Q: labelsHi
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 Show quoteHide quote "Chris Dunaway" <dunaw***@gmail.com> wrote in message news:1144330284.022149.153080@u72g2000cwu.googlegroups.com... > Can't you assign the DialogResult in the click event of the label? > What problem are you having? > D'OH!
Ok, just realised what you meant Chris! Thanks. Problem solved. Show quoteHide quote "G .Net" <nodamnspam@email.com> wrote in message news:T_KdnSpEPbKihKjZnZ2dnUVZ8qadnZ2d@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" <dunaw***@gmail.com> wrote in message > news:1144330284.022149.153080@u72g2000cwu.googlegroups.com... >> Can't you assign the DialogResult in the click event of the label? >> What problem are you having? >> > >
Startup Form's Name
populating variables from dynamically created controls multiple selection from checkboxes into text box For each and form controls VB command line compiler vbc.exe AND type "Int32" is not defined How to use VB.Net user controls with in VB.6 Inherited UserControls do not in appear in Toolbox (VB.NET 2005) Visual Basic 2005 Express SQL Server Locks/ProcessID - Is this a problem? vb5 to vb.net translation question |
|||||||||||||||||||||||