|
Form.Owner: msg#00395windows.devel.dotnet.winforms
Hi. Is it standard practice for dialog boxes to reference their caller using Form.Owner, or is it better to explicitly add a reference to the caller in the dialog's constructor (eg shown below). private frmMain _caller; public MyDialog(frmMain Caller) { this._caller=Caller; } I need access to the caller to access the calling form's property getters, and I'm not sure what the pitfalls of using Form.Owner are. The only downside I can see is having to cast Form.Owner to the calling forms type, but this is no show stopper. Thanks Kevin Hector _________________________________________________________________ Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Handling lots of menu entries: 00395, Fabian Schmied |
|---|---|
| Next by Date: | Client not recognizing updated assemblies on the web server: 00395, Greg Robinson |
| Previous by Thread: | Re: Binding Combobox to ArrayList (was User v Custom Controls)i: 00395, Richard Heintze |
| Next by Thread: | Client not recognizing updated assemblies on the web server: 00395, Greg Robinson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |