Re: Where do you put it
Greg Robinson <[email protected]> Tue, 4 Dec 2007 13:16:11 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
I try to write as little code as possible in a form's load event as it's unpredictable plus it will swallow exceptions. I would try making the assignment in the parent form that creates and shows the child form. Greg Robinson Custom Data Systems, Inc. www.cds-am.net -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]]On Behalf Of Steve Abaffy Sent: Tuesday, December 04, 2007 1:04 PM To: [email protected] Subject: [DOTNET-WINFORMS] Where do you put it Hello, This might be a stupid question, but I want a textbox to get focus when MDIchild form opens, so I put txtFindCustomer.Focus() in the Load event of the form but it doesn't work. Where does it go? Or is not the way to do this? Thanks