Usercontrol with a form

T

TheEtron

I made a usercontrol and it has a form which can popup.
This form contains a textbox and a submit button.
How can I return this value to the usercontrol?

Regards
The Etron
 
C

Cor Ligthert [MVP]

Etron,

\\\
dim frm as new myPopupForm
frm.showdialog
myfield = frm.PublicField
frm.dispose
///

I hope this helps,

Cor
 
H

Herfried K. Wagner [MVP]

I made a usercontrol and it has a form which can popup.
This form contains a textbox and a submit button.
How can I return this value to the usercontrol?

In .NET 2.0:

\\\
Using f As New FooForm()
If f.ShowDialog() = DialogResult.OK Then
Bla = f.Bla
End If
End Using
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top