Click here to Skip to main content
15,879,096 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Cannot connect to Access DB after installing Teradata Pin
Roger Wright6-Jul-11 12:23
professionalRoger Wright6-Jul-11 12:23 
AnswerRe: Cannot connect to Access DB after installing Teradata Pin
Shameel11-Jul-11 21:37
professionalShameel11-Jul-11 21:37 
QuestionMessage Removed Pin
6-Jul-11 5:16
professionalN_tro_P6-Jul-11 5:16 
AnswerRe: Can an Action cause a Memory Leak like an Event Handler Pin
Ian Shlasko6-Jul-11 5:39
Ian Shlasko6-Jul-11 5:39 
GeneralRe: Can an Action cause a Memory Leak like an Event Handler Pin
#realJSOP6-Jul-11 9:51
mve#realJSOP6-Jul-11 9:51 
AnswerRe: Can an Action cause a Memory Leak like an Event Handler Pin
MicroVirus12-Jul-11 5:53
MicroVirus12-Jul-11 5:53 
AnswerRe: Can an Action cause a Memory Leak like an Event Handler Pin
RobCroll15-Jul-11 7:08
RobCroll15-Jul-11 7:08 
QuestionIncluding CSS Stylesheet file from HTML When Used as a Resource [modified] Pin
JonathanCarling4-Jul-11 3:37
JonathanCarling4-Jul-11 3:37 
Hi everyone,

I've got a problem when trying to include a CSS file from within a HTML file when the HTML page is loaded as a resource (see below). I'm writing the application in VB.NET, it basically loads the HTML in a web browser control fine, but if I try to include a CSS relative to the EXE or HTM file the stylesheet does not apply.

Dim objMemoryStream As System.IO.MemoryStream
objMemoryStream = New IO.MemoryStream(System.Text.Encoding.Default.GetBytes(My.Resources.wpHtmlPage))
wbApplication.DocumentStream = objMemoryStream


The only way I can get this to work at them moment is to hard code the full path to the CSS file (see below), what I'd like to be able to do is either make it relative (and work) or add the CSS as a resource but this fails to work as well.

<link href="C:/temp/styles/default.css" rel="stylesheet" type="text/css" />


Any help or/and advice on this would be much appreciated, thanks.

modified on Monday, July 4, 2011 9:57 AM

AnswerRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
Shameel4-Jul-11 4:41
professionalShameel4-Jul-11 4:41 
GeneralRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
JonathanCarling4-Jul-11 5:26
JonathanCarling4-Jul-11 5:26 
GeneralRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
Shameel4-Jul-11 7:48
professionalShameel4-Jul-11 7:48 
AnswerRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
#realJSOP6-Jul-11 10:02
mve#realJSOP6-Jul-11 10:02 
QuestionPlugins for Application Pin
Xmen Real 27-Jun-11 7:07
professional Xmen Real 27-Jun-11 7:07 
AnswerRe: Plugins for Application Pin
#realJSOP27-Jun-11 15:43
mve#realJSOP27-Jun-11 15:43 
GeneralRe: Plugins for Application Pin
Xmen Real 27-Jun-11 15:56
professional Xmen Real 27-Jun-11 15:56 
GeneralRe: Plugins for Application Pin
Not Active28-Jun-11 1:48
mentorNot Active28-Jun-11 1:48 
GeneralRe: Plugins for Application Pin
Xmen Real 28-Jun-11 1:50
professional Xmen Real 28-Jun-11 1:50 
GeneralRe: Plugins for Application Pin
Not Active28-Jun-11 2:15
mentorNot Active28-Jun-11 2:15 
AnswerRe: Plugins for Application Pin
Not Active28-Jun-11 1:47
mentorNot Active28-Jun-11 1:47 
GeneralRe: Plugins for Application Pin
Pete O'Hanlon28-Jun-11 3:33
mvePete O'Hanlon28-Jun-11 3:33 
GeneralRe: Plugins for Application Pin
Not Active28-Jun-11 3:37
mentorNot Active28-Jun-11 3:37 
GeneralRe: Plugins for Application Pin
Xmen Real 28-Jun-11 4:39
professional Xmen Real 28-Jun-11 4:39 
GeneralRe: Plugins for Application Pin
Dave Kreskowiak28-Jun-11 4:45
mveDave Kreskowiak28-Jun-11 4:45 
GeneralRe: Plugins for Application Pin
Xmen Real 28-Jun-11 6:25
professional Xmen Real 28-Jun-11 6:25 
GeneralRe: Plugins for Application Pin
Dave Kreskowiak28-Jun-11 6:43
mveDave Kreskowiak28-Jun-11 6:43 

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.