473,325 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

webBrowser control takes focus

I have an IE web control on a form that rotates the stats of the call center
in it. When a new page is loaded it takes the focus away from the other
textboxes on the form, even if a user is typing in them.

Is there anyway to keep the control from getting focus?
May 10 '06 #1
3 2130
VJ
The browser control a completed event.. ( DocumentComplete). In this event
you can set the focus back to any control ...

VJ

"DJTN" <DJ**@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com...
I have an IE web control on a form that rotates the stats of the call
center
in it. When a new page is loaded it takes the focus away from the other
textboxes on the form, even if a user is typing in them.

Is there anyway to keep the control from getting focus?

May 10 '06 #2
Since the webcontrol is getting the focus after it's loaded the new page I
guess I can trap what textbox has the focus on the 'beforeNavigate' event and
then once it's complete I can send the focus back to the texbox.

I'll have to do some test to make sure it doesnt dis-rupt their workflow
when their typing.

Thanks VJ

"VJ" wrote:
The browser control a completed event.. ( DocumentComplete). In this event
you can set the focus back to any control ...

VJ

"DJTN" <DJ**@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com...
I have an IE web control on a form that rotates the stats of the call
center
in it. When a new page is loaded it takes the focus away from the other
textboxes on the form, even if a user is typing in them.

Is there anyway to keep the control from getting focus?


May 11 '06 #3
VJ
What you could do is do the loading in a background thread, so it does not
interrupt user typing...

Vijay

"DJTN" <DJ**@discussions.microsoft.com> wrote in message
news:08**********************************@microsof t.com...
Since the webcontrol is getting the focus after it's loaded the new page I
guess I can trap what textbox has the focus on the 'beforeNavigate' event
and
then once it's complete I can send the focus back to the texbox.

I'll have to do some test to make sure it doesnt dis-rupt their workflow
when their typing.

Thanks VJ

"VJ" wrote:
The browser control a completed event.. ( DocumentComplete). In this
event
you can set the focus back to any control ...

VJ

"DJTN" <DJ**@discussions.microsoft.com> wrote in message
news:99**********************************@microsof t.com...
>I have an IE web control on a form that rotates the stats of the call
>center
> in it. When a new page is loaded it takes the focus away from the other
> textboxes on the form, even if a user is typing in them.
>
> Is there anyway to keep the control from getting focus?
>
>


May 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wesley | last post by:
Hello, My application is hosting three WebBrowser control. What I am trying to do is when the mouse move over one of the WebBrowser controls I want to set the focus on that control so the mouse...
4
by: Jim | last post by:
Dear Santa, While it's true that I haven't been perfect this year, it's definitely an improvement over previous years. All cats still have their own fur, no hidden cat fur in this year's...
0
by: Vin | last post by:
The .Net 2.0's webbrowser is neat and pretty. But I am not able to capture Key events when the focus is on the webbrowser control in my winform. Options tried. 1. Wrote a class which extends this...
2
by: spamlaanbroek | last post by:
The .NET WebBrowser control in the Compact Framework 2.0 is a major headache. Once it takes the focus (e.g. by the user tapping on it) it keeps it and keyboard events are not passed to the form...
2
by: jasonhartsoe | last post by:
I'm using Visual Studio 2005 Team Edition....using visual basic. I'm trying to use the webbrowser control. In the webbrowser control I have it got to a page where there is a form. It waits for...
7
by: Dave Booker | last post by:
I am using a WebBrowser object in my .NET 2.0 application, but it is not shown to the user. Every time a timer event triggers it to perform a m_WebBrowser.Navigate() I get that classic IE 'click'...
1
by: gary.hibbard | last post by:
Hello, I have a webbrowser control on a pretty simple form (txtAddress, btnGo, WebBrowser1). When going to Google w/ this browser control, the focus changes to Google's search bar. Without...
2
by: Zytan | last post by:
I have a WebBroswer control, and I set the HTML it will display via DocumentText, which takes a a string. This shows the HTML code from the string in the control. But, sometimes, the WebBrowser...
11
by: kimiraikkonen | last post by:
Hi there, I needed to use MouseOver event on Webbrowser which is NOT provided by webbrowser control natively(what a disappointment), so i decided to go with another route to simulate this like: ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.