﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>A1VBCode Forums / Visual Basic (VB 4/5/6) / General Visual Basic  / Dir1.refresh and File1.refresh using a keypress / Latest Posts</title><generator>InstantForum.NET v4.1.1</generator><description>A1VBCode Forums</description><link>http://www.a1vbcode.com/vbforums/</link><webMaster>forums@a1vbcode.com</webMaster><lastBuildDate>Thu, 20 Nov 2008 09:16:08 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Dir1.refresh and File1.refresh using a keypress</title><link>http://www.a1vbcode.com/vbforums/Topic24848-3-1.aspx</link><description>&lt;div class="Quote"&gt;&lt;b&gt;Gkup (5/10/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;That did it. Thank you very much guys. I love this forum. You rock!&lt;/div&gt;&lt;P&gt;You're welcome! &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;</description><pubDate>Sat, 10 May 2008 11:11:47 GMT</pubDate><dc:creator>CDRIVE</dc:creator></item><item><title>RE: Dir1.refresh and File1.refresh using a keypress</title><link>http://www.a1vbcode.com/vbforums/Topic24848-3-1.aspx</link><description>That did it. Thank you very much guys. I love this forum. You rock!</description><pubDate>Sat, 10 May 2008 09:53:56 GMT</pubDate><dc:creator>Gkup</dc:creator></item><item><title>RE: Dir1.refresh and File1.refresh using a keypress</title><link>http://www.a1vbcode.com/vbforums/Topic24848-3-1.aspx</link><description>&lt;div class="Quote"&gt;&lt;b&gt;Keithuk (5/10/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;&lt;div class="Quote"&gt;&lt;b&gt;Gkup (5/9/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;Could a timer with an interval of 1 be messing it up by not allowing it to refresh fast enough?&lt;/div&gt;&lt;P&gt;You didn't mension a Timer so what does this Timer do? &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;&lt;/div&gt;&lt;P&gt;Keith, I was perfectly content with double clicking the Dir list item to change a directory until I read Gkup's post. I was about to give up trying until I tried this:  Eureka! &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;&lt;P&gt; &lt;DIV style="BORDER-RIGHT: #000000 3px solid; PADDING-RIGHT: 25px; BORDER-TOP: #000000 3px solid; PADDING-LEFT: 25px; BACKGROUND-IMAGE: none; PADDING-BOTTOM: 25px; BORDER-LEFT: #000000 3px solid; PADDING-TOP: 25px; BORDER-BOTTOM: #000000 3px solid; BACKGROUND-COLOR: #cccccc"&gt;&lt;FONT color=#0000cc&gt;Private&lt;/FONT&gt; &lt;FONT color=#0000cc&gt;Sub&lt;/FONT&gt; Dir1_KeyPress(KeyAscii &lt;FONT color=#0000cc&gt;As&lt;/FONT&gt; &lt;FONT color=#0000cc&gt;Integer&lt;/FONT&gt;)&lt;BR&gt;   &lt;FONT color=#0000cc&gt;If&lt;/FONT&gt; KeyAscii = 13 &lt;FONT color=#0000cc&gt;Then&lt;/FONT&gt;                       &lt;FONT color=#009900&gt;'Enable Enter key to change Dir&lt;/FONT&gt;&lt;BR&gt;      Dir1.Path = Dir1.List(Dir1.ListIndex)&lt;BR&gt;   &lt;FONT color=#0000cc&gt;End&lt;/FONT&gt; &lt;FONT color=#0000cc&gt;If&lt;/FONT&gt;&lt;BR&gt;&lt;FONT color=#0000cc&gt;End&lt;/FONT&gt; &lt;FONT color=#0000cc&gt;Sub&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;/DIV&gt;&lt;P&gt;I think Gkup has put the Dir.Refresh method in a Timer? Dunno why though!</description><pubDate>Sat, 10 May 2008 09:38:25 GMT</pubDate><dc:creator>CDRIVE</dc:creator></item><item><title>RE: Dir1.refresh and File1.refresh using a keypress</title><link>http://www.a1vbcode.com/vbforums/Topic24848-3-1.aspx</link><description>&lt;div class="Quote"&gt;&lt;b&gt;Gkup (5/9/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;Could a timer with an interval of 1 be messing it up by not allowing it to refresh fast enough?&lt;/div&gt;&lt;/P&gt;&lt;P&gt;You didn't mension a Timer so what does this Timer do? &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;</description><pubDate>Sat, 10 May 2008 08:39:38 GMT</pubDate><dc:creator>Keithuk</dc:creator></item><item><title>RE: Dir1.refresh and File1.refresh using a keypress</title><link>http://www.a1vbcode.com/vbforums/Topic24848-3-1.aspx</link><description>That is identical to the code I have. I don't understand why this doesn't work. I even pasted your code on top of mine just to make sure I wasn't missing something. I'm baffled at this point (although that's not hard to do for me). The file list should be updating the new directory path, but it's just not working. Any other ideas? Could a timer with an interval of 1 be messing it up by not allowing it to refresh fast enough? Thanks again for all your help. This forum is the best.</description><pubDate>Fri, 09 May 2008 21:36:08 GMT</pubDate><dc:creator>Gkup</dc:creator></item><item><title>RE: Dir1.refresh and File1.refresh using a keypress</title><link>http://www.a1vbcode.com/vbforums/Topic24848-3-1.aspx</link><description>&lt;div class="Quote"&gt;&lt;b&gt;Gkup (5/9/2008)&lt;/b&gt;&lt;hr noshade size="1" class="hr"&gt;When I tab over to the dirlistbox and use the arrow keys to move to a direrent directory, the filelistbox will not update.&lt;/div&gt;&lt;P&gt;Try. &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;&lt;DIV style="BORDER-RIGHT: #000000 3px solid; PADDING-RIGHT: 25px; BORDER-TOP: #000000 3px solid; PADDING-LEFT: 25px; BACKGROUND-IMAGE: none; PADDING-BOTTOM: 25px; BORDER-LEFT: #000000 3px solid; PADDING-TOP: 25px; BORDER-BOTTOM: #000000 3px solid; BACKGROUND-COLOR: #cccccc"&gt;&lt;FONT color=#0000cc&gt;Private&lt;/FONT&gt; &lt;FONT color=#0000cc&gt;Sub&lt;/FONT&gt; Drive1_Change()&lt;BR&gt;&lt;BR&gt;Dir1.Path = Drive1.Drive&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0000cc&gt;End&lt;/FONT&gt; &lt;FONT color=#0000cc&gt;Sub&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0000cc&gt;Private&lt;/FONT&gt; &lt;FONT color=#0000cc&gt;Sub&lt;/FONT&gt; Dir1_Change()&lt;BR&gt;&lt;BR&gt;File1.Path = Dir1.Path&lt;BR&gt;File1.Refresh&lt;BR&gt;&lt;BR&gt;&lt;FONT color=#0000cc&gt;End&lt;/FONT&gt; &lt;FONT color=#0000cc&gt;Sub&lt;/FONT&gt;&lt;BR&gt;&lt;/DIV&gt;</description><pubDate>Fri, 09 May 2008 20:23:37 GMT</pubDate><dc:creator>Keithuk</dc:creator></item><item><title>RE: Dir1.refresh and File1.refresh using a keypress</title><link>http://www.a1vbcode.com/vbforums/Topic24848-3-1.aspx</link><description>When I use arrow up or down keys in the drivelistbox the dirlistbox gets updated. When I tab over to the dirlistbox and use the arrow keys to move to a direrent directory, the filelistbox will not update. I would like to be able to arrow up or down to the directory I want then press Enter on the keyboard and have the filelistbox updated to that directory. Then tab over to the filelistbox and open the file by pressing Enter on the keyboard. When I place dir1.refresh in the keypress code it does nothing. Any idea what I'm doing wrong?&lt;/P&gt;&lt;P&gt;Thanks for your help.</description><pubDate>Fri, 09 May 2008 11:14:15 GMT</pubDate><dc:creator>Gkup</dc:creator></item><item><title>RE: Dir1.refresh and File1.refresh using a keypress</title><link>http://www.a1vbcode.com/vbforums/Topic24848-3-1.aspx</link><description>Welcome to A1vbcode Gkup.  &lt;IMG src="http://www.a1vbcode.com/vbforums/Uploads/Images/e3a6ee76-be2d-4cb7-81da-d556.gif"&gt;&lt;/P&gt;&lt;P&gt;So what isn't happening when you Refresh Drive1, Dir1 and File1? &lt;img align="absmiddle" src="http://www.a1vbcode.com/vbforums/Skins/Classic/Images/EmotIcons/Wink.gif" border="0" title="Wink"&gt;</description><pubDate>Thu, 08 May 2008 15:47:03 GMT</pubDate><dc:creator>Keithuk</dc:creator></item><item><title>Dir1.refresh and File1.refresh using a keypress</title><link>http://www.a1vbcode.com/vbforums/Topic24848-3-1.aspx</link><description>I'm trying to let a user tab from the drivelistbox to the dirlistbox and then the filelistbox. On each of these boxes I want the user to be able to select an item then press the Enter key to update each list. Ex: dir1.refresh drive1.refresh &amp;amp; file.refresh. I can't seem to get the lists to update to my new seletion. with a keypress or keydown event. Only a double click on these lists will refresh the change in paths. Does anyone know how I could do this? Any help would be greatly appreciated. Thanks. </description><pubDate>Thu, 08 May 2008 10:00:01 GMT</pubDate><dc:creator>Gkup</dc:creator></item></channel></rss>