vb.net - How to .SetValue(string, object) for context menu in internet explorer? -


i trying add new entries internet explorer context menu. want use default menu , according site http://msdn.microsoft.com/en-us/library/aa753589%28v=vs.85%29.aspx want use value 0x1. when type:

key.setvalue("contexts", 0x1) 

into visual studio, error "comma, ")", or valid expression continuation expected."

it works in example using c#: http://support.microsoft.com/kb/2618576

but in example using vb.net: http://code.msdn.microsoft.com/windowsdesktop/vbcustomiecontextmenu-913227d7/sourcecode?fileid=22702&pathid=537448198

they use:

iemenuextkey.setvalue("contexts", &h2)  

does know how can work in vb.net?

0x prefix hexadecimal numbers. vb.net uses &h instead. code should key.setvalue("contexts", &h1). because 1 has same value in both hexadecimal , decimal systems, can delete &h - key.setvalue("contexts", 1) fine.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -