Click here to Skip to main content
15,914,924 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read Sql Server Message from C# Pin
Luc Pattyn10-May-09 17:34
sitebuilderLuc Pattyn10-May-09 17:34 
AnswerRe: Read Sql Server Message from C# Pin
N a v a n e e t h10-May-09 16:27
N a v a n e e t h10-May-09 16:27 
AnswerRe: Read Sql Server Message from C# Pin
I Believe In GOD26-May-09 14:26
I Believe In GOD26-May-09 14:26 
QuestionError when creating new C# project Pin
Alan Burkhart10-May-09 13:19
Alan Burkhart10-May-09 13:19 
AnswerRe: Error when creating new C# project Pin
Luc Pattyn10-May-09 13:27
sitebuilderLuc Pattyn10-May-09 13:27 
GeneralRe: Error when creating new C# project Pin
Alan Burkhart10-May-09 16:32
Alan Burkhart10-May-09 16:32 
AnswerRe: Error when creating new C# project Pin
Anubhava Dimri10-May-09 20:07
Anubhava Dimri10-May-09 20:07 
GeneralRe: Error when creating new C# project Pin
Alan Burkhart11-May-09 2:55
Alan Burkhart11-May-09 2:55 
QuestionHow to know if my database update was done ? Pin
Yanshof10-May-09 9:46
Yanshof10-May-09 9:46 
AnswerRe: How to know if my database update was done ? Pin
Abhishek Sur10-May-09 10:06
professionalAbhishek Sur10-May-09 10:06 
GeneralRe: How to know if my database update was done ? Pin
Yanshof10-May-09 17:42
Yanshof10-May-09 17:42 
Question[Message Deleted] Pin
nike_arh10-May-09 9:03
nike_arh10-May-09 9:03 
AnswerRe: A program deleting itself Pin
DaveyM6910-May-09 9:05
professionalDaveyM6910-May-09 9:05 
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 

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.