EnableVisualStyles in a usercontrol hosted on Internet Explorer

After wasting the complete day to figure out how to set the visual styles in a usercontrol hosted on internet explorer. I finally figured out how to set the style of the controls on the user controls to match the current theme.

System.Windows.Forms.Application.EnableVisualStyles()
<meta http-equiv="MSThemeCompatible" content="Yes" />

After finishing off with one task I am stuck on the next major hurdle and this one seems to be the tougher one. I see no real way to call JavaScript from the user control. I don't plan to use the COM methods to call JavaScript as that would make the usercontrol untrustworthy. Lets see if there is some way of calling JavaScript from the UserControl the managed way.

Comments

Popular posts from this blog

The best mobile development platform for hobbyist programmer

Using Voicemail with Airtel Prepaid Karnataka

Airtel 16Mbps for Impatient Ones