Click here to Skip to main content
15,895,606 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionReflection issue Pin
cstrader23210-Jun-08 13:09
cstrader23210-Jun-08 13:09 
QuestionGetting DataTable to clean XML to send over a socket Pin
Noctris10-Jun-08 12:18
Noctris10-Jun-08 12:18 
AnswerRe: Getting DataTable to clean XML to send over a socket Pin
Mycroft Holmes10-Jun-08 15:29
professionalMycroft Holmes10-Jun-08 15:29 
AnswerRe: Getting DataTable to clean XML to send over a socket Pin
BDEz (Member 3919223)12-Jun-08 7:27
BDEz (Member 3919223)12-Jun-08 7:27 
QuestionHow to Load an HTML Page From Resources File? Pin
Saul Johnson10-Jun-08 7:23
Saul Johnson10-Jun-08 7:23 
AnswerRe: How to Load an HTML Page From Resources File? Pin
jzonthemtn10-Jun-08 8:04
jzonthemtn10-Jun-08 8:04 
GeneralRe: How to Load an HTML Page From Resources File? Pin
Saul Johnson10-Jun-08 20:31
Saul Johnson10-Jun-08 20:31 
AnswerRe: How to Load an HTML Page From Resources File? Pin
BDEz (Member 3919223)12-Jun-08 7:49
BDEz (Member 3919223)12-Jun-08 7:49 
I had problems with adding a resource once for an HTML file. I ended up booting it to the curb and writing my own HTML structure internal.

Below is a quick HTML entry you can stream towards your WebBrowser object and it will work just fine. It builds a basic web page with a table and has simple Java script support VIA a text box entry. I also disabled any right click to view source function with the entry in the body section oncontextmenu=return false;

Give it a try you may find this easier to deal with.
=========================================================================

Dim tik As String = """"
TextBox.Text = "Add some internal Java Script stuff here if you want for a pop up window or what not"

WebBrowser1.DocumentText = "<%@ Page Language=" & tik & "VB" & tik & "%>" & ControlChars.NewLine & "<html><head><meta http-equiv=" & tik & "content-type" & tik & " content=" & tik & "text/html" & tik & ">" & ControlChars.NewLine & "" & _
"<script language=" & tik & "JavaScript" & tik & ">" & ControlChars.NewLine & "" & _
"<!-- hide" & ControlChars.NewLine & "" & _
"" & TextBox.Text & "" & _
"// -->" & ControlChars.NewLine & "" & _
"</script>" & ControlChars.NewLine & "" & _
"</head>" & ControlChars.NewLine & "<body topmargin=" & tik & "0" & tik & " marginwidth=" & tik & "0" & tik & " marginheight=" & tik & "0" & tik & " bgcolor=" & tik & "#FFFFFF" & tik & " text=" & tik & "#000000" & tik & " link=" & tik & "#000000" & tik & " vlink=" & tik & "#000000" & tik & " alink=" & tik & "#000000" & tik & " oncontextmenu=" & tik & "return false;" & tik & ">" & _
"<font size=" & tik & "2" & tik & " face=" & tik & "Arial, Helvetica, sans-serif" & tik & " color=" & tik & "#000000" & tik & "><table border=" & tik & "0" & tik & " width=" & tik & "610" & tik & " cellpadding=" & tik & "0" & tik & " cellspacing=" & tik & "0" & tik & " bgcolor=" & tik & "#FFFFFF" & tik & ">" & _
"<tr><td><font size=" & tik & "2" & tik & ">•<a href=" & tik & " http://www.codeproject.com" & tik & " target=" & tik & "_blank" & tik & "><b> Code Project Rocks! </b></a><br>" & _
"Where would we be without the help of everyone at Code Project?!?!<br><br></td></tr>" & _
"</table></font></body></html>"
AnswerRe: How to Load an HTML Page From Resources File? Pin
Kenny McKee30-Jun-08 9:12
Kenny McKee30-Jun-08 9:12 
QuestionChoosing which service to use based on an appsetting Pin
daveg5510-Jun-08 3:53
daveg5510-Jun-08 3:53 
AnswerRe: Choosing which service to use based on an appsetting Pin
Christian Graus10-Jun-08 4:11
protectorChristian Graus10-Jun-08 4:11 
GeneralRe: Choosing which service to use based on an appsetting Pin
daveg5510-Jun-08 4:34
daveg5510-Jun-08 4:34 
GeneralRe: Choosing which service to use based on an appsetting Pin
Christian Graus10-Jun-08 5:06
protectorChristian Graus10-Jun-08 5:06 
AnswerRe: Choosing which service to use based on an appsetting Pin
Mycroft Holmes10-Jun-08 15:17
professionalMycroft Holmes10-Jun-08 15:17 
GeneralRe: Choosing which service to use based on an appsetting Pin
daveg5511-Jun-08 1:08
daveg5511-Jun-08 1:08 
GeneralRe: Choosing which service to use based on an appsetting Pin
Mycroft Holmes11-Jun-08 2:10
professionalMycroft Holmes11-Jun-08 2:10 
QuestionDataError Event for a Datagrid Pin
gates0910-Jun-08 1:35
gates0910-Jun-08 1:35 
AnswerRe: DataError Event for a Datagrid Pin
Mycroft Holmes10-Jun-08 15:33
professionalMycroft Holmes10-Jun-08 15:33 
QuestionHow to check file status Pin
Ebube10-Jun-08 0:34
Ebube10-Jun-08 0:34 
AnswerRe: How to check file status Pin
Ashfield10-Jun-08 1:32
Ashfield10-Jun-08 1:32 
GeneralRe: How to check file status Pin
Ebube10-Jun-08 2:05
Ebube10-Jun-08 2:05 
GeneralRe: How to check file status Pin
Ashfield10-Jun-08 3:40
Ashfield10-Jun-08 3:40 
QuestionWhen Rss Feed Will Be Updated Pin
divyesh14329-Jun-08 23:39
divyesh14329-Jun-08 23:39 
AnswerRe: When Rss Feed Will Be Updated Pin
Ashfield10-Jun-08 1:28
Ashfield10-Jun-08 1:28 
JokeRe: When Rss Feed Will Be Updated Pin
Mycroft Holmes10-Jun-08 15:36
professionalMycroft Holmes10-Jun-08 15:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.