" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Set default location for Internet explorer download directory in VB 6

Posted on November 23rd, 2015 by Amrita Dash

To specify the default location where downloaded files from Internet explorer are saved , we need to set the default location (directory path in registry). The registry key location is [HKCU\Software\Microsoft\Internet Explorer] Here is the code sample in VB 6.0 [VB 6.0 Code Starts] ‘ — Declaration and API calls for writing to registry Private […]

Making a TextBox autoselected in VB6

Posted on November 23rd, 2015 by Pallavi Kar

To make a TextBox automatically select its text we can have a GotFocus event handler as below: In GotFocus event of the Textbox we can have 2-3 lines of codes to make it auto select when it gets the focus. The code is shown below: Text1.SelStart = 0 Text1.SelLength = Len(Text1.Text) OR SendKeys “{home}+{end}”