>// Set the tag of the page to the enum >oNewPage.Tag = csApplication.Panes.ship_items; > >// Create the usercontrol and call the setup method on it >crlShipItems oShipItems = new crlShipItems(); >oShipItems.Setup(); > >// Add the user control to the tab >tabPages.TabPages[iPage].Controls.Add(oShipItems); >oShipItems.Dock = DockStyle.Fill; > >// Set the focus on the control >oShipItems.Select(); >>
>private void crlShipItems_Enter(object sender, EventArgs e) >{ > txtPartNo.Focus(); >} >>