My current challenge involves using the defaultfocus property to establish default focus within a form or panel. This works seamlessly when setting default focus for a textbox in a browser.
However, I have encountered an issue when loading the same page using the web-browser control in VB6. In this scenario, the default focus is not being set properly (using VB6 Microsoft Internet Controls). Even simple forms are affected by this problem. Attempting to use .focus in the page load has also proven ineffective within the web-browser control.
To address the issue, I have attempted to refresh the page with the following code:
WebBrowser1.Navigate "url here"
WebBrowser1.Refresh
While using the refresh method successfully sets the focus as intended, it does result in reloading the entire page (including the ASPX form). Is there a more efficient solution that can be implemented within my ASP website to achieve the desired outcome?