Search code examples
c#internet-explorerbho

IE image is displayed in localhost but not online(BHO)


I am creating a BHO for internet explorer in C#, and I am unable to insert an image. The image is inserted correctly if I save the webpage(facebook.com/myprofile) to localhost and open it in IE, but not online. When I compile the project the image is added to a directory near the currently executing assembly. If I use IE HTML debugger(F12) and check for and follow the src, it is correct, and if I open it in a new tab, the images is displayed. why is this happening? Can it be some sort of permission problem regarding IE or BHO settings? Thx in advance..


Solution

  • Well...I'm still not sure why IE will not display the tag correctly when inserting it from BHO but I got round through this by simulating an img tag with a div and giving it a background image with CSS, all inserted by BHO through C# code