Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
AnswerRe: A program deleting itself Pin
Pete O'Hanlon10-May-09 9:08
mvePete O'Hanlon10-May-09 9:08 
AnswerRe: [Message Deleted] Pin
Pete O'Hanlon10-May-09 9:09
mvePete O'Hanlon10-May-09 9:09 
Question[Message Deleted] Pin
nike_arh10-May-09 8:15
nike_arh10-May-09 8:15 
AnswerRe: The principle of programs like TeamViewer Pin
Pete O'Hanlon10-May-09 8:44
mvePete O'Hanlon10-May-09 8:44 
GeneralRe: The principle of programs like TeamViewer Pin
Colin Angus Mackay10-May-09 13:33
Colin Angus Mackay10-May-09 13:33 
GeneralRe: The principle of programs like TeamViewer Pin
Luc Pattyn10-May-09 14:20
sitebuilderLuc Pattyn10-May-09 14:20 
GeneralRe: The principle of programs like TeamViewer Pin
led mike18-May-09 11:52
led mike18-May-09 11:52 
QuestionDisplay Assembly Resources in Web Browser (problem with jpg/pdf) Pin
sodevrom10-May-09 7:41
sodevrom10-May-09 7:41 
Hello,
I have 3 types of resources embeded in my executable :
html, jpg and pdf. I also have a listbox, and I want whenever a user sleects a different item, to display it in a web browser.

I have no problems doing that to HTML files, but with the other one, it's a different thing and I hope someone can help me do this.
First, I want to say that I don't want to save the resources locally and after that load them in the browser, because I don't want users to see them.

I am using this to view the html :

<br />
Assembly assembly = Assembly.GetExecutingAssembly();<br />
webBrowser1.DocumentStream = assembly.GetManifestResourceStream("ebook.index.html");


If I try to do the same thing to the pdf or jpg, it simply shows me the binary data of the files, it does not display them in the browser.
Is it possible to make the visible in the browser, directly from the assembly ? What are my options ?

Thank you
AnswerRe: Display Assembly Resources in Web Browser (problem with jpg/pdf) Pin
Luc Pattyn10-May-09 8:09
sitebuilderLuc Pattyn10-May-09 8:09 
GeneralRe: Display Assembly Resources in Web Browser (problem with jpg/pdf) Pin
sodevrom10-May-09 8:15
sodevrom10-May-09 8:15 
GeneralRe: Display Assembly Resources in Web Browser (problem with jpg/pdf) Pin
Luc Pattyn10-May-09 11:00
sitebuilderLuc Pattyn10-May-09 11:00 
GeneralRe: Display Assembly Resources in Web Browser (problem with jpg/pdf) Pin
Luc Pattyn10-May-09 13:09
sitebuilderLuc Pattyn10-May-09 13:09 
GeneralRe: Display Assembly Resources in Web Browser (problem with jpg/pdf) Pin
sodevrom10-May-09 13:10
sodevrom10-May-09 13:10 
QuestionSelf-updating application by using batch files (Need Help) Pin
SimpleData10-May-09 6:28
SimpleData10-May-09 6:28 
AnswerRe: Self-updating application by using batch files (Need Help) Pin
Giorgi Dalakishvili10-May-09 7:00
mentorGiorgi Dalakishvili10-May-09 7:00 
GeneralRe: Self-updating application by using batch files (Need Help) Pin
SimpleData10-May-09 7:22
SimpleData10-May-09 7:22 
Questionmultine textbox maxlenght depending of height and widht control Pin
ramaluciano10-May-09 4:39
ramaluciano10-May-09 4:39 
AnswerRe: multine textbox maxlenght depending of height and widht control Pin
Henry Minute10-May-09 5:13
Henry Minute10-May-09 5:13 
GeneralRe: multine textbox maxlenght depending of height and widht control Pin
ramaluciano10-May-09 5:45
ramaluciano10-May-09 5:45 
GeneralRe: multine textbox maxlenght depending of height and widht control Pin
Henry Minute10-May-09 6:37
Henry Minute10-May-09 6:37 
Questionprocess modifying/openning file Pin
lost_in_code10-May-09 2:27
lost_in_code10-May-09 2:27 
AnswerRe: process modifying/openning file Pin
Dave Kreskowiak10-May-09 6:04
mveDave Kreskowiak10-May-09 6:04 
Questionconverting the numeric value to text Pin
jaillani khan10-May-09 2:26
jaillani khan10-May-09 2:26 
AnswerRe: converting the numeric value to text Pin
Luc Pattyn10-May-09 2:34
sitebuilderLuc Pattyn10-May-09 2:34 
GeneralRe: converting the numeric value to text Pin
jaillani khan10-May-09 8:22
jaillani khan10-May-09 8:22 

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.