Webbrowser control inside a Tab control display problem

edddiiie

New member
Local time
, 00:24
Joined
Jun 18, 2014
Messages
3
I have a form with a tab control, inside the tab control I placed an ActiveX control (Microsoft Web Browser). These are at the bottom of the form.

Everything displays fine if the entire form fit on the screen but if the form is too long and I scroll down the browser control is getting obscured by the tab control and getting chopped off (the contents are covered). It is as if the browser control is staying in space where it was and moving behind the tab control as I scroll.

This problem does not occur if I place the browser control directly on the form. Also I note that the browser control is sitting correctly within the tab control.

I have been through all the settings and properties of both controls and haven't been able to fix it. I searched all over the web but no one has previously stumbled across this one by the look of it.

My question is has anyone come across this before and how can I fix it?

See the attached image to get the idea.
 

Attachments

  • Capture.JPG
    Capture.JPG
    31.1 KB · Views: 231
Thanks BlueIshDan, which Scroll Event are referring to? I checked and couldn't find such event for the Form, Detail, Tab Control not the Browser ActiveX control?

I also tried the DoEvents in the Form Reseize event to test the theory but the DoEvents had not effect on the display.

I have some further details about this bug; If the application is minimized and the Scroll bar is moved down the Web browser control will not get chopped. Only when the Scroll bar on the Form is moved will it get chopped. The Obscuring of the WB control happens both horizontally and vertically.

I am not sure how to describe the behavior but I think the WB control is retaining its Top and Left position even though the Tab Control is scrolling up.

Also if I right click within the visible area of the wb control I see the IE quick menu. If I right click on the obscured area (the white area) I see the Form quick menu not the Tab Control.

Hope I am making sense but if you have an idea what is going on please advise. Is this some sort of MS Access bug?

I have reproduced this bug, see the attached image where I placed the wb control side by side; one in a tab and another directly on the form. The one in the tab gets chopped where the form scroll bar is down top. Same control the only difference is one of them is inside a Tab Control!
 

Attachments

  • Capture2.PNG
    Capture2.PNG
    31.1 KB · Views: 183
Last edited:
After spending hours on this trivial problem with no apparent fix I noticed that what may be happening is that when the scroll bar moves the Detail section of the Form is being repainted in the obscured area instead of the Browser Control. This is beginning to look like a MS bug where the WB Control is not compatible with the Tab Control - the two don't keep track of each other well.
 

Users who are viewing this thread

Back
Top Bottom