I am using defaultfocus property to set default focus in a form or panel. I am trying to set default focus for textbox and it works properly in a browser.
But when the same page is loaded using webbrowser control in VB6 i am facing the problem. The default focus will not set when page loaded using webbrowser control(VB6 Microsoft internet controls). I tried using the same for a simple form and it does not work. Then I tried refreshing the page as shown below
If i use refresh then focus will be set properly. But this will load the page again(it loads form of aspx again). So is there any other better solution which I can do within my ASP website? or any solution which can do the same?
But when the same page is loaded using webbrowser control in VB6 i am facing the problem. The default focus will not set when page loaded using webbrowser control(VB6 Microsoft internet controls). I tried using the same for a simple form and it does not work. Then I tried refreshing the page as shown below
Code:
WebBrowser1.Navigate "url here"
WebBrowser1.Refresh