Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: passing data from child form to parent Pin
tasumisra12-Dec-09 19:38
tasumisra12-Dec-09 19:38 
GeneralRe: passing data from child form to parent Pin
dan!sh 12-Dec-09 21:15
professional dan!sh 12-Dec-09 21:15 
GeneralRe: passing data from child form to parent Pin
OriginalGriff12-Dec-09 22:20
mveOriginalGriff12-Dec-09 22:20 
GeneralRe: passing data from child form to parent Pin
dan!sh 13-Dec-09 0:05
professional dan!sh 13-Dec-09 0:05 
GeneralRe: passing data from child form to parent Pin
tasumisra13-Dec-09 2:47
tasumisra13-Dec-09 2:47 
GeneralRe: passing data from child form to parent Pin
OriginalGriff13-Dec-09 2:52
mveOriginalGriff13-Dec-09 2:52 
GeneralRe: passing data from child form to parent Pin
DaveyM6913-Dec-09 4:10
professionalDaveyM6913-Dec-09 4:10 
GeneralRe: passing data from child form to parent Pin
dan!sh 13-Dec-09 5:38
professional dan!sh 13-Dec-09 5:38 
OriginalGriff wrote:
Does that make sense?


Yes, it does. I have seen a lot of data sharing posts here and I almost always provide both the mechanisms by which this can be done. i.e. delegates and properties. Then, it is up to the OP to choose. I prefer it that way since it is their application and they are supposed to understand it, not me. For instance, the multiple instance problem you mentioned is something that only OP would know is possible or not.

Although, I do not prefer having a new event when one can very well achieve the thing using existing ones. Like in this case, handling button click event in the Form1 itself should be sufficient.

As far as having properties is concerned, exposing the controls of the page/form is something I do not prefer. So if I was OP, I would have handled OK button click in Form1. Still, as I had said before, it is his/her application and it is up to him/her to decide which approach is better.

50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

GeneralRe: passing data from child form to parent Pin
tasumisra13-Dec-09 2:45
tasumisra13-Dec-09 2:45 
QuestionHttpWebRequest.BegineGetResponse() not running asynchronously… Pin
royk12312-Dec-09 17:53
royk12312-Dec-09 17:53 
AnswerRe: HttpWebRequest.BegineGetResponse() not running asynchronously… Pin
Luc Pattyn13-Dec-09 2:04
sitebuilderLuc Pattyn13-Dec-09 2:04 
GeneralRe: HttpWebRequest.BegineGetResponse() not running asynchronously… Pin
royk12314-Dec-09 0:37
royk12314-Dec-09 0:37 
Questionconnectionstring Pin
farokhian12-Dec-09 10:03
farokhian12-Dec-09 10:03 
QuestionException Handling Pin
Razanust12-Dec-09 7:53
Razanust12-Dec-09 7:53 
AnswerRe: Exception Handling Pin
PIEBALDconsult12-Dec-09 8:52
mvePIEBALDconsult12-Dec-09 8:52 
QuestionSchedulle a task for some days of the week Pin
baranils12-Dec-09 6:14
baranils12-Dec-09 6:14 
AnswerRe: Schedulle a task for some days of the week Pin
Abhinav S12-Dec-09 6:20
Abhinav S12-Dec-09 6:20 
AnswerRe: Schedulle a task for some days of the week Pin
Luc Pattyn12-Dec-09 6:22
sitebuilderLuc Pattyn12-Dec-09 6:22 
GeneralRe: Schedulle a task for some days of the week Pin
baranils12-Dec-09 6:35
baranils12-Dec-09 6:35 
GeneralRe: Schedulle a task for some days of the week Pin
baranils12-Dec-09 6:56
baranils12-Dec-09 6:56 
GeneralRe: Schedulle a task for some days of the week Pin
Luc Pattyn12-Dec-09 7:21
sitebuilderLuc Pattyn12-Dec-09 7:21 
GeneralRe: Schedulle a task for some days of the week Pin
baranils12-Dec-09 7:38
baranils12-Dec-09 7:38 
GeneralRe: Schedulle a task for some days of the week Pin
PIEBALDconsult12-Dec-09 8:55
mvePIEBALDconsult12-Dec-09 8:55 
GeneralRe: Schedulle a task for some days of the week Pin
baranils12-Dec-09 9:24
baranils12-Dec-09 9:24 
GeneralRe: Schedulle a task for some days of the week Pin
PIEBALDconsult12-Dec-09 9:35
mvePIEBALDconsult12-Dec-09 9:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.