i added these in application
- webbrowser1
- buttons
- textbox
problem is, when app loads, load iframe textbox , display on webbrowser it's showing white spaces on webbrowser
here's code
public class form1 private sub form1_load(byval sender system.object, byval e system.eventargs) handles mybase.load webbrowser1.documenttext = textbox1.text end sub end class
try following, use following here set margin , padding 0 on body. tested adding html below project resource
<!doctype html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="" x-ua-compatible"" content="" ie="10" /> <meta charset="utf-8" /> <title></title> </head> <body style="margin:0; padding:0"> <iframe src="http://www.w3schools.com"></iframe> </body> </html>
code load above resource
public class form1 private sub form1_load(sender object, e eventargs) handles mybase.load webbrowser1.documenttext = my.resources.contents end sub end class
Comments
Post a Comment