Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / March 2007

Tip: Looking for answers? Try searching our database.

passing values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mydotnetdoubt@gmail.com - 13 Mar 2007 10:19 GMT
Hai dear all,.

How can i capture child form close event in parent form in  c# 2005,

    I'll make it some more clear ,  I have one master form  with 40 text
boxes, and one 'search' button , in the search button im calling child
form
(Form fReg = new frmRegistration();
     fReg.Show();) ,there Im searching some data and filling some
possible data in a data grid ,out of tat im selecting one data from
the data gird, and the selected data should fill the all the text box
in the parent  form- how can I do ?

Im trying to do the same by assigning the selected value in a pubic
field and access the same in the parent form at the time of child form
close event  and generate the relevant
fields  from the data base by executing sql once agn..

Please suggest me the best practice for this .

Sab
Bryan Phillips - 13 Mar 2007 23:04 GMT
Consider calling ShowDialog instead of Show.  Then, you can use the
returned DialogResult value to determine if you need to update the
parent form.

--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog:  http://bphillips76.spaces.live.com

> Hai dear all,.
>
[quoted text clipped - 17 lines]
>
> Sab

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.