Click here to Skip to main content
15,562,410 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 13:23
professionalRoger Wright6-Jul-11 13:23 
AnswerRe: Cannot connect to Access DB after installing Teradata Pin
Shameel11-Jul-11 22:37
professionalShameel11-Jul-11 22:37 
QuestionMessage Removed Pin
6-Jul-11 6:16
professionalN_tro_P6-Jul-11 6:16 
AnswerRe: Can an Action cause a Memory Leak like an Event Handler Pin
Ian Shlasko6-Jul-11 6:39
Ian Shlasko6-Jul-11 6:39 
GeneralRe: Can an Action cause a Memory Leak like an Event Handler Pin
#realJSOP6-Jul-11 10:51
mva#realJSOP6-Jul-11 10:51 
AnswerRe: Can an Action cause a Memory Leak like an Event Handler Pin
MicroVirus12-Jul-11 6:53
MicroVirus12-Jul-11 6:53 
AnswerRe: Can an Action cause a Memory Leak like an Event Handler Pin
RobCroll15-Jul-11 8:08
RobCroll15-Jul-11 8:08 
QuestionIncluding CSS Stylesheet file from HTML When Used as a Resource [modified] Pin
JonathanCarling4-Jul-11 4:37
JonathanCarling4-Jul-11 4: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 5:41
professionalShameel4-Jul-11 5:41 
GeneralRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
JonathanCarling4-Jul-11 6:26
JonathanCarling4-Jul-11 6:26 
GeneralRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
Shameel4-Jul-11 8:48
professionalShameel4-Jul-11 8:48 
AnswerRe: Including CSS Stylesheet file from HTML When Used as a Resource Pin
#realJSOP6-Jul-11 11:02
mva#realJSOP6-Jul-11 11:02 
QuestionPlugins for Application Pin
Xmen Real 27-Jun-11 8:07
professional Xmen Real 27-Jun-11 8:07 
AnswerRe: Plugins for Application Pin
#realJSOP27-Jun-11 16:43
mva#realJSOP27-Jun-11 16:43 
GeneralRe: Plugins for Application Pin
Xmen Real 27-Jun-11 16:56
professional Xmen Real 27-Jun-11 16:56 
GeneralRe: Plugins for Application Pin
Not Active28-Jun-11 2:48
mentorNot Active28-Jun-11 2:48 
GeneralRe: Plugins for Application Pin
Xmen Real 28-Jun-11 2:50
professional Xmen Real 28-Jun-11 2:50 
GeneralRe: Plugins for Application Pin
Not Active28-Jun-11 3:15
mentorNot Active28-Jun-11 3:15 
AnswerRe: Plugins for Application Pin
Not Active28-Jun-11 2:47
mentorNot Active28-Jun-11 2:47 
GeneralRe: Plugins for Application Pin
Pete O'Hanlon28-Jun-11 4:33
mvaPete O'Hanlon28-Jun-11 4:33 
GeneralRe: Plugins for Application Pin
Not Active28-Jun-11 4:37
mentorNot Active28-Jun-11 4:37 
GeneralRe: Plugins for Application Pin
Xmen Real 28-Jun-11 5:39
professional Xmen Real 28-Jun-11 5:39 
GeneralRe: Plugins for Application Pin
Dave Kreskowiak28-Jun-11 5:45
mveDave Kreskowiak28-Jun-11 5:45 
GeneralRe: Plugins for Application Pin
Xmen Real 28-Jun-11 7:25
professional Xmen Real 28-Jun-11 7:25 
GeneralRe: Plugins for Application Pin
Dave Kreskowiak28-Jun-11 7:43
mveDave Kreskowiak28-Jun-11 7: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.