Click to See Complete Forum and Search --> : Microsoft Web Control


alcOrtholite
November 12th, 2002, 11:56 AM
I am using a Microsoft Web Control. I have added this control to a tabstrip and this tab strip in turn is part of an active x control. When I compile and run this program, the Web control does not run properly and crashes.

I have tried the web control on a standard application form

Its fine.

I have tried the web control on an active x control and a tab strip, but the web control is not on the tabstrip!

Its fine.

I have tried the web control on a tab strip on a standard application form.

Its fine.

When the web control is on a tab strip which is on an active x control, it just doesn't initialize!!!

Why does this happen? What am I doing wrong???

Can anyone shed any light on this for me?

Thankyou in anticipation...

Al C

alcOrtholite
November 18th, 2002, 04:28 PM
I recently submitted a thread containing information on why the ‘MS Web Control’ was not working at runtime when placed on a user defined active x control. I have now got chance to review the information I provided seeing as it looks as though no one knew what I was on about!!! My fault as I structured the post like a 3 year old would in my haste to get a response.

When I added the Web control to the active x control, VB.NET inserts some lines of code. (How handy!) One of these lines of code is:

-----------------------------------------------------------------------------------------------
Ctype(Me.AxBrowser1.System.ComponentModel.IsupportInitialize).EndInit()
-----------------------------------------------------------------------------------------------


It is this line of code that the web browser falls over on at runtime. Raising the following exception (VS.NET set at when exceptions are THROWN, break)

---------------------------------------------------------------------------------------------------
A First Chance Exception of type

‘System.Runtime.InteropServices.COMException’ occurred in windows.forms.dll

Additional Information: Unknown Error

Can anyone tell me what is going on? I can’t seem to locate any information at Microsoft.

Kind Regards

Alan Croston