Lanc1988 Posted February 19, 2006 Posted February 19, 2006 (edited) I have the microsoft web browser control on my form to display images and i was wondering how to set the margins so there isnt so much white space on the top and left side. I would have used a picturebox but some of the images are too big to fit in it. EDIT: also.. what is the code to display "loading" and "done" in the status bar? I put a status bar on my form and tried statusbar1.text = axwebbrowser1.statustext but it gives me an error. Edited February 20, 2006 by Lanc1988 Quote
Joe Mamma Posted February 21, 2006 Posted February 21, 2006 (edited) I have the microsoft web browser control on my form to display images and i was wondering how to set the margins so there isnt so much white space on the top and left side. I would have used a picturebox but some of the images are too big to fit in it. EDIT: also.. what is the code to display "loading" and "done" in the status bar? I put a status bar on my form and tried statusbar1.text = axwebbrowser1.statustext but it gives me an error. webBrowser1.Navigate("about:blank"); mshtml.IHTMLDocument2 currentDoc = (mshtml.IHTMLDocument2)webBrowser1.Document.DomDocument; mshtml.IHTMLElement bodydisp = currentDoc.createElement("body"); mshtml.HTMLDocument doc = (mshtml.HTMLDocument)currentDoc; doc.appendChild((mshtml.IHTMLDOMNode)bodydisp); mshtml.HTMLBody bdy = (mshtml.HTMLBody)bodydisp; bdy.leftMargin = "0pt"; bdy.topMargin = "0pt"; bdy.innerHTML = "<img top=\"0\" left=\"0\" src=\"http://www.obj-tec.com/hotchick.gif\" />"; Edited February 21, 2006 by Joe Mamma Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.