Changing The Position Of Html Elements In Windows Forms WebBrowser
Is it possible to change the position of one html element in the Windows Forms WebBrowser Control? I already have this: public partial class Form1 : Form { public Form1()
Solution 1:
You can move the_game element by adding position
property to Style
like this.
var game = webBrowser1.Document.GetElementById("the_game");
game.Style += "position: absolute; top: 50px; right: 20px;";
I would recomend to read this and get how to use this.
Post a Comment for "Changing The Position Of Html Elements In Windows Forms WebBrowser"