﻿<?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?)  » Set Focus to a List View</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 16 Sep 2026 23:41:43 GMT</lastBuildDate><ttl>20</ttl><item><title>Set Focus to a List View</title><link>http://forum.strataframe.net/FindPost26696.aspx</link><description>lvsample.focus does not leave the cursor in the first column.&lt;br&gt;
&lt;br&gt;
I requery the list view and would like to put the cursor in the first column on the first record but lvsample.focus does not do it. Is there a way to do it? TIA.</description><pubDate>Wed, 31 Mar 2010 06:24:30 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: Set Focus to a List View</title><link>http://forum.strataframe.net/FindPost26708.aspx</link><description>Perfect. Thank you so much.......</description><pubDate>Wed, 31 Mar 2010 06:24:30 GMT</pubDate><dc:creator>Terry Bottorff</dc:creator></item><item><title>RE: Set Focus to a List View</title><link>http://forum.strataframe.net/FindPost26702.aspx</link><description>Hi Terry,&lt;br&gt;
&lt;br&gt;
Try something like this:&lt;br&gt;
&lt;br&gt;
[codesnippet]&lt;br&gt;
Me.lstMainData.Items(0).Selected = True&lt;br&gt;
Me.lstMainData.Focus()&lt;br&gt;
[/codesnippet]</description><pubDate>Tue, 30 Mar 2010 16:07:04 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>