Click here to Skip to main content
15,867,594 members
Home / Discussions / C#
   

C#

 
AnswerRe: Operator '==' cannot be applied to operands of type 'string' and 'int' Pin
V.12-Jan-12 23:18
professionalV.12-Jan-12 23:18 
GeneralRe: Operator '==' cannot be applied to operands of type 'string' and 'int' Pin
Wayne Gaylard12-Jan-12 23:19
professionalWayne Gaylard12-Jan-12 23:19 
GeneralRe: Operator '==' cannot be applied to operands of type 'string' and 'int' Pin
bigphish13-Jan-12 8:35
bigphish13-Jan-12 8:35 
AnswerRe: Operator '==' cannot be applied to operands of type 'string' and 'int' Pin
Mc_Topaz13-Jan-12 4:07
Mc_Topaz13-Jan-12 4:07 
QuestionHow to auto scroll listbox on selection? Pin
GubiD12-Jan-12 5:52
GubiD12-Jan-12 5:52 
AnswerRe: How to auto scroll listbox on selection? Pin
Luc Pattyn12-Jan-12 6:45
sitebuilderLuc Pattyn12-Jan-12 6:45 
AnswerRe: How to auto scroll listbox on selection? Pin
BobJanova12-Jan-12 23:21
BobJanova12-Jan-12 23:21 
QuestionIs there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
turbosupramk312-Jan-12 4:45
turbosupramk312-Jan-12 4:45 
Hello,

I would like to wrap a text file into my project, and copy it out to a directory when a button is clicked. My current project is a dll plugin. Is there a way to have a folder inside of the solution explorer to hold these files, and then to be able to copy them out of this folder (which lives inside of the dll) to a directory?

If this is not possible, what is the most efficient way to write a text file, where carriage returns and spacing are crucial? It's a couple of hundred lines, so it'd be pretty tedious to write a string like the following which I was hoping to avoid and only use the below as a last resort.

C#
string fileContentsLineByLine= "test" + System.Environment.NewLine +
            "test2" + System.Environment.NewLine +
                "test3";


Thank you for reading.
AnswerRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
Richard MacCutchan12-Jan-12 4:58
mveRichard MacCutchan12-Jan-12 4:58 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
turbosupramk312-Jan-12 6:29
turbosupramk312-Jan-12 6:29 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
Richard MacCutchan12-Jan-12 6:48
mveRichard MacCutchan12-Jan-12 6:48 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
turbosupramk312-Jan-12 8:42
turbosupramk312-Jan-12 8:42 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
jschell12-Jan-12 13:04
jschell12-Jan-12 13:04 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
turbosupramk312-Jan-12 13:07
turbosupramk312-Jan-12 13:07 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
jschell13-Jan-12 8:48
jschell13-Jan-12 8:48 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
turbosupramk313-Jan-12 9:07
turbosupramk313-Jan-12 9:07 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
Richard MacCutchan12-Jan-12 21:43
mveRichard MacCutchan12-Jan-12 21:43 
GeneralRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
BobJanova12-Jan-12 23:29
BobJanova12-Jan-12 23:29 
AnswerRe: Is there a way to wrap a file into my dll and then copy it out to a directory during an event? Pin
jschell14-Jan-12 6:45
jschell14-Jan-12 6:45 
QuestionSerial port Windows 8 WinRT Pin
Member 834721012-Jan-12 2:54
Member 834721012-Jan-12 2:54 
QuestionHow to do image closing for ABBYY Finereader Engine 10 Pin
YongSiang11-Jan-12 14:55
YongSiang11-Jan-12 14:55 
AnswerRe: How to do image closing for ABBYY Finereader Engine 10 Pin
Pete O'Hanlon11-Jan-12 21:18
subeditorPete O'Hanlon11-Jan-12 21:18 
QuestionC# COM object and PowerBuilder Pin
TimWallace11-Jan-12 10:54
TimWallace11-Jan-12 10:54 
QuestionC#_Error "Namespace cannot directly contain..." Pin
Deborah Palmer McCain10-Jan-12 19:16
Deborah Palmer McCain10-Jan-12 19:16 
AnswerRe: C#_Error "Namespace cannot directly contain..." Pin
Roger Wright10-Jan-12 19:37
professionalRoger Wright10-Jan-12 19:37 

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.