Custom Dialog Box

CHJM

New member
Joined
Aug 19, 2004
Messages
4
Programming Experience
Beginner
I was wondering if someone can give me a tip on creating custom dialog boxes. I need to create a search dialog box in which a user can input some information that will then be used to populate a grid. The user can then double click a cell and have the value returned to the originating form. Creating the dialog box itself I can do I just don’t know how to return the value to the form that the dialog box was launch from. I have found some tips in books but they deal with a one to one relationship of form and dialog box, my problem is this dialog box can be launch from any number of different forms.

Thanks in advance.
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,530
Location
Lansing, MI; USA
Programming Experience
10+
in a module declare a public variable as your dialog box then when you call it, just make a new instance of your dialogbox object. then to access a value from your dialogbox it's simply mydialog.textbox1 or a variable (gotta be public variable though) to get the value or whatever
 
Top