Click here to Skip to main content
15,888,077 members
Home / Discussions / C#
   

C#

 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 6:07
mveOriginalGriff23-Jan-13 6:07 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 6:09
Skytten23-Jan-13 6:09 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 6:20
mveOriginalGriff23-Jan-13 6:20 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 6:26
Skytten23-Jan-13 6:26 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff23-Jan-13 8:04
mveOriginalGriff23-Jan-13 8:04 
GeneralRe: Client is not connecting to the server Pin
Skytten23-Jan-13 10:03
Skytten23-Jan-13 10:03 
GeneralRe: Client is not connecting to the server Pin
OriginalGriff24-Jan-13 0:04
mveOriginalGriff24-Jan-13 0:04 
GeneralRe: Client is not connecting to the server Pin
Skytten24-Jan-13 12:57
Skytten24-Jan-13 12:57 
QuestionC# parameters Pin
classy_dog23-Jan-13 4:37
classy_dog23-Jan-13 4:37 
AnswerRe: C# parameters Pin
Richard MacCutchan23-Jan-13 5:04
mveRichard MacCutchan23-Jan-13 5:04 
GeneralRe: C# parameters Pin
PIEBALDconsult23-Jan-13 5:29
mvePIEBALDconsult23-Jan-13 5:29 
AnswerRe: C# parameters Pin
jschell23-Jan-13 8:59
jschell23-Jan-13 8:59 
AnswerRe: C# parameters Pin
BC @ CV23-Jan-13 10:17
BC @ CV23-Jan-13 10:17 
QuestionC# file Pin
classy_dog23-Jan-13 4:31
classy_dog23-Jan-13 4:31 
AnswerRe: C# file Pin
Deflinek23-Jan-13 4:37
Deflinek23-Jan-13 4:37 
GeneralRe: C# file Pin
PIEBALDconsult23-Jan-13 5:10
mvePIEBALDconsult23-Jan-13 5:10 
GeneralRe: C# file Pin
OriginalGriff23-Jan-13 5:36
mveOriginalGriff23-Jan-13 5:36 
QuestionUse axFrameControl to open the ppt encountered the error Pin
Jason Fang_22-Jan-13 21:55
Jason Fang_22-Jan-13 21:55 
AnswerRe: Use axFrameControl to open the ppt encountered the error Pin
micke.andersson28-Jan-13 2:55
micke.andersson28-Jan-13 2:55 
QuestionCreating Various Files Using C# Pin
ASPnoob22-Jan-13 17:28
ASPnoob22-Jan-13 17:28 
AnswerRe: Creating Various Files Using C# Pin
PIEBALDconsult22-Jan-13 18:14
mvePIEBALDconsult22-Jan-13 18:14 
AnswerRe: Creating Various Files Using C# Pin
Abhinav S22-Jan-13 19:35
Abhinav S22-Jan-13 19:35 
AnswerRe: Creating Various Files Using C# Pin
Rahul Rajat Singh22-Jan-13 19:38
professionalRahul Rajat Singh22-Jan-13 19:38 
AnswerRe: Creating Various Files Using C# Pin
OriginalGriff22-Jan-13 21:33
mveOriginalGriff22-Jan-13 21:33 
You can use a StreamWriter to create any type of file - you are not limited to text:
C#
using (StreamWriter writer = new StreamWriter(@"D:\Temp\MyFile.html"))
{
    writer.Write(textToAdd);
}
Will work fine, and will create a file with the HTML extension. However, that doesn't mean that the file will be readable by a web browser if you double click it - it depends on the content. Similarly, if you use a file name with a .DLL extension, it will be created, but it won;t work if you try to add it as a reference unless you write suitable content into it, or .AVI but it won't show a movie.

The extension just controls which application(s) will try to open the file - the content must also be correct and applicable to the application. You can open a .DLL file in VLC Media player provided the content is a video file and not an executable program!
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

QuestionC# update a audit table Pin
dcof22-Jan-13 15:56
dcof22-Jan-13 15:56 

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.