Note that there are some explanatory texts on larger screens.

plurals
  1. POForms WebBrowser control and css gradients in IE
    primarykey
    data
    text
    <p>I have a WPF Application using a windows forms WebBrowser control inside a WindowsFormsHost. The page in this control uses jquery and jscrollpane to create a customized scrollbar. With CSS, I'm setting the jspArrowDown background to a gradient. In XP (and only XP it seems) there is an issue displaying the gradient. This same gradient background is used in the jspArrowUp element with no problems. Even more odd is the fact that the IE proper on the same box displays the gradient background perfectly fine. Has anybody encountered this unique situation or one similar to it with the windows forms WebBrowser control? If so, how was it resolved?</p> <p><strong>Identical CSS</strong></p> <pre><code>filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#FFFFFF', endColorstr='#CCCCCC'); </code></pre> <p><strong>Identical User Agent</strong></p> <pre><code>Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E) </code></pre> <p><strong>Different Visual Results</strong></p> <p>IE Proper</p> <p><img src="https://i.stack.imgur.com/OObrZ.jpg" alt=""></p> <p>Windows Form WebControl</p> <p><img src="https://i.stack.imgur.com/qOiUV.jpg" alt=""></p> <p><strong>Update</strong></p> <p>After having this error crop up in a Windows 7 environment, I did some more digging and realized it really wasn't the fact that the environment is XP, it was the fact that the environment didn't have IE 9.0 installed. The WebBrowser control is running IE 7.0 regardless of what machine I run on, but if the machine has IE 9 installed, it will render using the Trident 5.0 engine instead of the Trident 4.0 engine that comes with IE 7 and IE 8. So the issue is actually happening with Trident 4.0. Is there any way to get Trident 5.0 on to an XP machine?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload