fguihen Posted December 28, 2005 Posted December 28, 2005 i have a form with a text field on it. to populate that text field, i have a little button that brings up a search form to fnd the relivant data. i want to pass this data back to the first button when i click a button on the search form. this is proving supprisingly hard to do. can anyone offer me some help? Quote
Cags Posted December 28, 2005 Posted December 28, 2005 Add a public method (PopulateField etc.) to the first form that is passed the data as a parameter. Then this method can be called from the search field. Creating the second form as a Dialog with the first form as its parent may also help make this easier. Quote Anybody looking for a graduate programmer (Midlands, England)?
Administrators PlausiblyDamp Posted December 28, 2005 Administrators Posted December 28, 2005 http://www.xtremedotnettalk.com/showthread.php?t=83092 Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Diesel Posted December 28, 2005 Posted December 28, 2005 You should look into this more. This is a farely big design choice, and there are many different ways of doing this. http://www.c-sharpcorner.com/Code/2002/Aug/PassingDataInForms.asp http://www.publicjoe.f9.co.uk/csharp/csharp19.html http://searchvb.techtarget.com/vsnetATEAnswers/0,293820,sid8_gci1051298_tax293671,00.html http://www.devcity.net/Articles/102/1/multipleforms3.aspx Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.