﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Unable to set focus to combobox after adding new record</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 19 Sep 2026 19:01:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Unable to set focus to combobox after adding new record</title><link>http://forum.strataframe.net/FindPost24956.aspx</link><description>Hi all.&lt;/P&gt;&lt;P&gt;Gere is my code:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; boSchedule_dtl_AfterAddNew(&lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;&lt;FONT color=#2b91af size=2&gt;EventArgs&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;boSchedule_dtl.schedhdr_id = schedhdr_id;&lt;/P&gt;&lt;P&gt;ActiveControl = cboteam1_id;&lt;/P&gt;&lt;P&gt;cboteam1_id.Select();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;but when I step though it, the debugge tells me that the activeControl is toolstripcontainer1!&lt;/P&gt;&lt;P&gt;What is going on here? I am just trying to make data entry easier for my users.&lt;/P&gt;&lt;P&gt;TIA.&lt;/P&gt;&lt;P&gt;Marcia&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Wed, 21 Oct 2009 16:20:32 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: Unable to set focus to combobox after adding new record</title><link>http://forum.strataframe.net/FindPost24962.aspx</link><description>[quote][b]Paul Chase (10/21/2009)[/b][hr]Marcia&lt;P&gt;You can set the form level property FocusControlOnAdd to the control you want. &amp;nbsp;[/quote]&lt;P&gt;Thanks, Paul! I knew it had to be simple.</description><pubDate>Wed, 21 Oct 2009 16:20:32 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: Unable to set focus to combobox after adding new record</title><link>http://forum.strataframe.net/FindPost24958.aspx</link><description>Marcia&lt;P&gt;You can set the form level property FocusControlOnAdd to the control you want. &amp;nbsp;</description><pubDate>Wed, 21 Oct 2009 14:43:20 GMT</pubDate><dc:creator>Paul Chase</dc:creator></item></channel></rss>