Re: Where do you put it
Helen Warn <[email protected]> Tue, 4 Dec 2007 10:55:19 -0800
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
Or in the Activate event handler. helen -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of Chris Bordeman Sent: Tuesday, December 04, 2007 10:36 AM To: [email protected] Subject: Re: [DOTNET-WINFORMS] Where do you put it Try in Show instead of Load. -----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto:[email protected]] On Behalf Of John Warner Sent: Tuesday, December 04, 2007 12:33 PM To: [email protected] Subject: Re: [DOTNET-WINFORMS] Where do you put it Importance: Low That's an idea, if that fails alternately set the label for the textbox tab order to zero and the textbox to one, but only if Phil's idea doesn't work. John Warner > -----Original Message----- > From: Discussion forum for developers using Windows Forms to build > apps and controls [mailto:[email protected]] On > Behalf Of Phil Sayers > Sent: Tuesday, December 04, 2007 1:22 PM > To: [email protected] > Subject: Re: [DOTNET-WINFORMS] Where do you put it > > > have you looked at the TabOrder property of your textbox? > setting it to zero may get you there. > > > > -----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 >