GoogleCodeArchive / open-webkit-sharp

Automatically exported from code.google.com/p/open-webkit-sharp
GNU Lesser General Public License v3.0
1 stars 0 forks source link

VS 2010 designer throws WebKitBrowser DocumentEncoding null reference exception #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I added the WebKitBrowser control, I started getting errors in the 
designer about DocumentEncoding property having an object reference not set to 
instance of an object error.

If I set any properties on other controls in the same form, I get errors 
preventing me from actually setting the property because of the WebKitBrowser 
error. I tried changing the form designer code to manually set the 
DocumentEncoding property, but VS will just keep overwriting it with no 
property setter. Other webkit properties are giving similar errors in the 
designer (see screenshot).

When I run the app though, it works fine.

Original issue reported on code.google.com by KeithNYC on 14 Oct 2011 at 5:23

Attachments:

GoogleCodeExporter commented 9 years ago
That happens because during the designer time you cannot edit the browser's 
preferences because WebKit is not initialized. You should change your 
document's encoding in the form_load event or any other event that the 
WebKitBrowser object has been created and WebKit initialized.

Original comment by tsumalis96@gmail.com on 15 Oct 2011 at 6:35

GoogleCodeExporter commented 9 years ago
This has been fixed for the latest OpenWebKitSharp version

Original comment by tsumalis96@gmail.com on 24 Nov 2011 at 5:49