Click here to Skip to main content
12,403,378 members (72,814 online)
   

C#

 
GeneralRe: C# file Pin
OriginalGriff23-Jan-13 5:36
mvpOriginalGriff23-Jan-13 5:36 
QuestionUse axFrameControl to open the ppt encountered the error Pin
Jason Fang_22-Jan-13 21:55
memberJason Fang_22-Jan-13 21:55 
AnswerRe: Use axFrameControl to open the ppt encountered the error Pin
micke.andersson28-Jan-13 2:55
membermicke.andersson28-Jan-13 2:55 
QuestionCreating Various Files Using C# Pin
ASPnoob22-Jan-13 17:28
memberASPnoob22-Jan-13 17:28 
AnswerRe: Creating Various Files Using C# Pin
PIEBALDconsult22-Jan-13 18:14
memberPIEBALDconsult22-Jan-13 18:14 
AnswerRe: Creating Various Files Using C# Pin
Abhinav S22-Jan-13 19:35
mvpAbhinav S22-Jan-13 19:35 
AnswerRe: Creating Various Files Using C# Pin
Rahul Rajat Singh22-Jan-13 19:38
mvpRahul Rajat Singh22-Jan-13 19:38 
AnswerRe: Creating Various Files Using C# Pin
OriginalGriff22-Jan-13 21:33
mvpOriginalGriff22-Jan-13 21:33 
You can use a StreamWriter to create any type of file - you are not limited to text:
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
memberdcof22-Jan-13 15:56 
AnswerRe: C# update a audit table Pin
Mycroft Holmes22-Jan-13 16:28
memberMycroft Holmes22-Jan-13 16:28 
AnswerRe: C# update a audit table Pin
PIEBALDconsult22-Jan-13 18:25
memberPIEBALDconsult22-Jan-13 18:25 
GeneralRe: C# update a audit table Pin
dcof23-Jan-13 4:41
memberdcof23-Jan-13 4:41 
GeneralRe: C# update a audit table Pin
PIEBALDconsult23-Jan-13 5:46
memberPIEBALDconsult23-Jan-13 5:46 
QuestionTwo others BindingNavigators in one form. How? Pin
Czajo22-Jan-13 6:26
memberCzajo22-Jan-13 6:26 
AnswerRe: Two others BindingNavigators in one form. How? Pin
Mycroft Holmes22-Jan-13 15:33
memberMycroft Holmes22-Jan-13 15:33 
GeneralRe: Two others BindingNavigators in one form. How? Pin
Czajo22-Jan-13 21:19
memberCzajo22-Jan-13 21:19 
QuestionRunning an exe Pin
TheGermoz22-Jan-13 5:50
memberTheGermoz22-Jan-13 5:50 
AnswerRe: Running an exe Pin
mark merrens22-Jan-13 6:07
membermark merrens22-Jan-13 6:07 
GeneralRe: Running an exe Pin
TheGermoz22-Jan-13 6:16
memberTheGermoz22-Jan-13 6:16 
GeneralRe: Running an exe Pin
Pete O'Hanlon22-Jan-13 6:51
protectorPete O'Hanlon22-Jan-13 6:51 
GeneralRe: Running an exe Pin
PIEBALDconsult22-Jan-13 7:14
memberPIEBALDconsult22-Jan-13 7:14 
AnswerRe: Running an exe Pin
PIEBALDconsult22-Jan-13 6:15
memberPIEBALDconsult22-Jan-13 6:15 
SuggestionRe: Running an exe Pin
Richard MacCutchan22-Jan-13 6:34
mvpRichard MacCutchan22-Jan-13 6:34 
GeneralRe: Running an exe Pin
TheGermoz22-Jan-13 6:57
memberTheGermoz22-Jan-13 6:57 
GeneralRe: Running an exe Pin
jibesh22-Jan-13 7:04
memberjibesh22-Jan-13 7:04 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 28 Jul 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid