Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
GeneralRe: connect four Pin
Member 10339071-May-09 22:36
Member 10339071-May-09 22:36 
GeneralRe: connect four Pin
Garth J Lancaster1-May-09 23:54
professionalGarth J Lancaster1-May-09 23:54 
GeneralRe: connect four Pin
Member 10339072-May-09 0:30
Member 10339072-May-09 0:30 
GeneralRe: connect four Pin
Pete O'Hanlon2-May-09 10:06
mvePete O'Hanlon2-May-09 10:06 
QuestionNeed help using visual studio and C# to make a simple app that displays html Pin
devsfan18301-May-09 13:54
devsfan18301-May-09 13:54 
AnswerRe: Need help using visual studio and C# to make a simple app that displays html Pin
Anthony Mushrow1-May-09 14:47
professionalAnthony Mushrow1-May-09 14:47 
GeneralRe: Need help using visual studio and C# to make a simple app that displays html [modified] Pin
devsfan18301-May-09 15:53
devsfan18301-May-09 15:53 
GeneralRe: Need help using visual studio and C# to make a simple app that displays html Pin
Anthony Mushrow2-May-09 0:55
professionalAnthony Mushrow2-May-09 0:55 
You can add the html file as an embedded resource, or add it to a resource file (like the ones Visual Studio generates, they store all sorts of strings pictures and other stuff).

To make it an embedded resource, just add the file to your solution and in its properties to it to an embedded resource. To then get the the file back out you should be able to do something like:

Stream myHTMLFile = Assembly.GetExecutingAssembly().GetManifestResourceStream("MyFile.html");


You could then pass that stream into a StreamReader and get a string representing your HTML which you can set yourself. Or save it to disk somewhere as a temporary file and point to that.

My current favourite word is: Delicious!
-SK Genius

Game Programming articles start -here[^]-

QuestionHow to debug COM+ Applications Using Microsoft .NET Enterprise Services ?? Pin
Yanshof1-May-09 13:51
Yanshof1-May-09 13:51 
Questionnic enable/disable Pin
mark_me1-May-09 13:50
mark_me1-May-09 13:50 
AnswerRe: nic enable/disable Pin
Mycroft Holmes1-May-09 14:36
professionalMycroft Holmes1-May-09 14:36 
AnswerRe: nic enable/disable Pin
Anthony Mushrow1-May-09 14:56
professionalAnthony Mushrow1-May-09 14:56 
Questionusing a listbox within a listview how to pass parameter from listview Pin
jmrobbins1-May-09 12:26
jmrobbins1-May-09 12:26 
AnswerRe: using a listbox within a listview how to pass parameter from listview Pin
T_Teef1-May-09 13:24
T_Teef1-May-09 13:24 
QuestionError 1 'character': member names cannot be the same as their enclosing type Pin
msheekhah1-May-09 11:13
msheekhah1-May-09 11:13 
AnswerRe: Error 1 'character': member names cannot be the same as their enclosing type Pin
Pete O'Hanlon1-May-09 12:06
mvePete O'Hanlon1-May-09 12:06 
AnswerRe: Error 1 'character': member names cannot be the same as their enclosing type Pin
Henry Minute1-May-09 12:08
Henry Minute1-May-09 12:08 
GeneralRe: Error 1 'character': member names cannot be the same as their enclosing type Pin
msheekhah1-May-09 12:55
msheekhah1-May-09 12:55 
QuestionReportViewer... printing multiple documents.... Pin
Jacob Dixon1-May-09 11:01
Jacob Dixon1-May-09 11:01 
AnswerRe: ReportViewer... printing multiple documents.... Pin
Jacob Dixon1-May-09 14:45
Jacob Dixon1-May-09 14:45 
QuestionAdding formatted text to a richtextbox changes appearance of bullets Pin
Edward Hoad1-May-09 10:05
Edward Hoad1-May-09 10:05 
Questionenable a textbox in gridview using checkbox. Pin
magshine1-May-09 9:08
magshine1-May-09 9:08 
AnswerRe: enable a textbox in gridview using checkbox. Pin
Henry Minute1-May-09 12:11
Henry Minute1-May-09 12:11 
AnswerRe: enable a textbox in gridview using checkbox. Pin
magshine7-May-09 4:44
magshine7-May-09 4:44 
Questionconverting text to int Pin
Mehrdad from iran1-May-09 8:34
Mehrdad from iran1-May-09 8:34 

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.