VB.Net: How to add CEFSharp events -
does know how add events cefsharp in vb.net? want add event, if page fails load, load error page telling user instead of having blank white page. have tried adding following, browser
being cefsharp.winforms.chromiumwebbrowser
:
private sub browser_loaderror(sender object, e loaderroreventargs) handles browser.loaderror end sub
but handles clause requires withevents variable defined in containing type or 1 of base types.
, don't know why. have tried adding withevents
variable:
private withevents sub browser_loaderror(sender object, e loaderroreventargs) handles browser.loaderror end sub
but 'withevents' not valid on method declaration.
.
does have suggestions?
you need add withevents
browser
:
private withevents browser chromiumwebbrowser
this isn't technically cefsharp
question, generic vb.net
question.
Comments
Post a Comment