vba webbrowser event before display -


i face simple problem vba webbrowser control

wb.navigate "http://www.google.com" 

it's loading fine. want catch page before displaying in control , managed manipulate wb's dom

private sub wb_beforenavigate2(byval pdisp object, url variant, flags variant, targetframename variant, postdata variant, headers variant, cancel boolean)       dim doc htmldocument     set doc = wb.object.document      dim node variant     set node = doc.getelementbyid("color-red")      if not node nothing          node.parentnode.removechild (node)      end if      exit sub 

the problem original page still displaying until modifications take over. it's somehow little flickering want remove.

the control has not "before display" event it's possible make custom control event, intercepting win messages? or other solution? in advance,


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -