<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : TIP: Editcontrol setfocus</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : TIP: Editcontrol setfocus]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 06:39:51 +0000</pubDate>
  <lastBuildDate>Tue, 02 Feb 2010 04:42:36 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=15244</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[TIP: Editcontrol setfocus : This is causing me no end of grief...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=56524&amp;title=tip-editcontrol-setfocus#56524</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5870">ManSys</a><br /><strong>Subject:</strong> 15244<br /><strong>Posted:</strong> 02 February 2010 at 4:42am<br /><br />This is causing me no end of grief - you can't even put a Custom Control on the form and set focus to that - no cursor is shown!&nbsp; My form is opened by a PopupControl held on another form and when the SendKeys is called it sends Codejock into a loop and crashes the app / vb.&nbsp; Very disappointing!]]>
   </description>
   <pubDate>Tue, 02 Feb 2010 04:42:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=56524&amp;title=tip-editcontrol-setfocus#56524</guid>
  </item> 
  <item>
   <title><![CDATA[TIP: Editcontrol setfocus : Your right Mr. Den, That scenario...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=53513&amp;title=tip-editcontrol-setfocus#53513</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2090">joeliner</a><br /><strong>Subject:</strong> 15244<br /><strong>Posted:</strong> 29 September 2009 at 1:23am<br /><br />Your right Mr. Den, <img src="http://forum.codejock.com/smileys/smiley9.gif" border="0" align="absmiddle"><br><br>That scenario will work where the commandbars and editcontrol is on the same form or same App. My fault, I should have mentioned this, In my production enviroment, my form that has the editcontrol is in a dll and attached to a dockingpane. the commandbars on a main form. <br><br>regards<br><br><br>]]>
   </description>
   <pubDate>Tue, 29 Sep 2009 01:23:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=53513&amp;title=tip-editcontrol-setfocus#53513</guid>
  </item> 
  <item>
   <title><![CDATA[TIP: Editcontrol setfocus :  I just tried this in a sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=53496&amp;title=tip-editcontrol-setfocus#53496</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3253">Mr.Den</a><br /><strong>Subject:</strong> 15244<br /><strong>Posted:</strong> 28 September 2009 at 11:17am<br /><br /><DIV></DIV><DIV>I just tried this in a sample app and it worked with an edit field and an exit button:</DIV><DIV>&nbsp;</DIV><DIV>Private Sub CommandBars_CommandBarKeyDown(CommandBar As XtremeCommandBars.ICommandBar, KeyCode As Long, Shift As Integer)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp; Select Case KeyCode<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Case 13<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CommandBars.FindControl(, ID_PB_EXIT).Execute<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; End Select<BR>&nbsp;&nbsp;&nbsp; <BR>End Sub</DIV><DIV>&nbsp;</DIV><DIV>As soon as I pressed the enter key, the exit button fires. Is that what you mean?</DIV>]]>
   </description>
   <pubDate>Mon, 28 Sep 2009 11:17:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=53496&amp;title=tip-editcontrol-setfocus#53496</guid>
  </item> 
  <item>
   <title><![CDATA[TIP: Editcontrol setfocus : Hi Mr. Den,Am afraid not cause...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=53454&amp;title=tip-editcontrol-setfocus#53454</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2090">joeliner</a><br /><strong>Subject:</strong> 15244<br /><strong>Posted:</strong> 25 September 2009 at 12:15pm<br /><br />Hi Mr. Den,<br><br>Am afraid not cause i have tried .execute countless times. The scenario is like that of the new windows Mail.<br><br>You press Ctrl + E (which in our case can be a commandbarAction - ID_FIND_RECORD) and the cursor gets the focus on to the editcontrol. The user types<br>some text e.g. 'code' and presses enter then the Execute command is executed.<br><br>Get what I mean?<br><br>]]>
   </description>
   <pubDate>Fri, 25 Sep 2009 12:15:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=53454&amp;title=tip-editcontrol-setfocus#53454</guid>
  </item> 
  <item>
   <title><![CDATA[TIP: Editcontrol setfocus : You canaccomplish the same thingwith...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=53451&amp;title=tip-editcontrol-setfocus#53451</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3253">Mr.Den</a><br /><strong>Subject:</strong> 15244<br /><strong>Posted:</strong> 25 September 2009 at 11:59am<br /><br />You can&nbsp;accomplish the same thing&nbsp;with the .Execute command:<DIV>&nbsp;</DIV>Commandbars.FindControl(, ID_FIND_RECORD).Execute<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 25 Sep 2009 11:59:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=53451&amp;title=tip-editcontrol-setfocus#53451</guid>
  </item> 
  <item>
   <title><![CDATA[TIP: Editcontrol setfocus : Hi guys, i wonder why it doesn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=53436&amp;title=tip-editcontrol-setfocus#53436</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2090">joeliner</a><br /><strong>Subject:</strong> 15244<br /><strong>Posted:</strong> 25 September 2009 at 6:14am<br /><br /><P>Hi guys,</P><DIV>i wonder why it doesn't work out of the box but when you set editcontrol.setfocus you actually dont see the cursor blinking inside the editcontrol. Now you may not really want to execute but first allow the user to type some txt then execute. So after struggling with it for ages, this what i did:</DIV><DIV>&nbsp;</DIV><DIV>Dim controlEdit as CommandBarEdit</DIV><DIV>Set controlEdit = Commandbars.FindControl(, ID_FIND_RECORD)</DIV><DIV>controlEdit.Setfocus</DIV><DIV><strong>Sendkeys "{Enter}"</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>am sure this is something CJ can add in their code in future. <img src="http://forum.codejock.com/smileys/smiley2.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>regards,</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 25 Sep 2009 06:14:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15244&amp;PID=53436&amp;title=tip-editcontrol-setfocus#53436</guid>
  </item> 
 </channel>
</rss>