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

.NET (Core and Framework)

 
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 
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 
If this is a winforms app, and you're using the web browser control, you MUST supply the fully qualified path to any style or javascript file you want to load. I do it this way:

C#
string html = string.Format("<link rel='stylesheet' type='text/css' href=\"{0}\" />", System.IO.Path.Combine(Application.StartupPath, "myFile.css"));


If you made the css and html files embedded resources, they will be extracted when the program runs to the executable folder. This way, you can use the Application.StartupPath as the path to the files.


You may find this article helpful in this regard:

CodeProject Article Scraper, Revisited[^]
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass." - Dale Earnhardt, 1997


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
subeditorPete 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 
GeneralRe: Plugins for Application Pin
Xmen Real 28-Jun-11 6:58
professional Xmen Real 28-Jun-11 6:58 
GeneralRe: Plugins for Application Pin
Pete O'Hanlon28-Jun-11 7:12
subeditorPete O'Hanlon28-Jun-11 7:12 
GeneralRe: Plugins for Application Pin
Xmen Real 28-Jun-11 7:21
professional Xmen Real 28-Jun-11 7:21 
GeneralRe: Plugins for Application Pin
Pete O'Hanlon28-Jun-11 7:24
subeditorPete O'Hanlon28-Jun-11 7:24 

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.