Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21246

Default focus in a form or panel does not set inside a Web browser control

$
0
0
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

Code:

WebBrowser1.Navigate "url here"
WebBrowser1.Refresh

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?

Viewing all articles
Browse latest Browse all 21246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>