javascript - Show VB6 forms when click a link in html page of webbrowser -


i working vb6 webbrowser, here need open vb6 form when user click particular link of webbrowser's link like

in html

<html> <head> <body> <a href="--show vb6 form--">click show vb6 form2</a> </body> </html> 

i do't have idea how it. thought sometime can done third text file when link clicked write cod 002 in text file.

and in vb form timer check once second file, when timer detect file contains 002 show form.

can method? or else shorter can except?

pick better naming scheme like:

<a href="#vb-showform2">click show vb6 form2</a> <a href="#vb-waffles">waffles</a> 

then intercept link clicks via beforenavigate2 event, @ url , if matches #vb-* run code:

private sub webbrowserctrl_beforenavigate2(byval pdisp object, url variant, flags variant, targetframename variant, postdata variant, headers variant, cancel boolean)      '// #vb-xxx command url     dim pos long: pos = instrrev(url, "#vb-")      if pos         cancel = true '// stop default navigation          url = mid$(url, pos + 4)          select case lcase$(url)             case "showform2": form2.show             '...             case "waffles":   msgbox "waffles."             case else:        msgbox "unknown command " & url         end select     end if  end sub 

Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -