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

C#

 
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 
AnswerRe: C# update a audit table Pin
Mycroft Holmes22-Jan-13 16:28
professionalMycroft Holmes22-Jan-13 16:28 
AnswerRe: C# update a audit table Pin
PIEBALDconsult22-Jan-13 18:25
mvePIEBALDconsult22-Jan-13 18:25 
GeneralRe: C# update a audit table Pin
dcof23-Jan-13 4:41
dcof23-Jan-13 4:41 
GeneralRe: C# update a audit table Pin
PIEBALDconsult23-Jan-13 5:46
mvePIEBALDconsult23-Jan-13 5:46 
QuestionTwo others BindingNavigators in one form. How? Pin
Czajo22-Jan-13 6:26
Czajo22-Jan-13 6:26 
AnswerRe: Two others BindingNavigators in one form. How? Pin
Mycroft Holmes22-Jan-13 15:33
professionalMycroft Holmes22-Jan-13 15:33 
GeneralRe: Two others BindingNavigators in one form. How? Pin
Czajo22-Jan-13 21:19
Czajo22-Jan-13 21:19 
QuestionRunning an exe Pin
PozzaVecia22-Jan-13 5:50
PozzaVecia22-Jan-13 5:50 
AnswerRe: Running an exe Pin
R. Giskard Reventlov22-Jan-13 6:07
R. Giskard Reventlov22-Jan-13 6:07 
GeneralRe: Running an exe Pin
PozzaVecia22-Jan-13 6:16
PozzaVecia22-Jan-13 6:16 
GeneralRe: Running an exe Pin
Pete O'Hanlon22-Jan-13 6:51
subeditorPete O'Hanlon22-Jan-13 6:51 
GeneralRe: Running an exe Pin
PIEBALDconsult22-Jan-13 7:14
mvePIEBALDconsult22-Jan-13 7:14 
AnswerRe: Running an exe Pin
PIEBALDconsult22-Jan-13 6:15
mvePIEBALDconsult22-Jan-13 6:15 
SuggestionRe: Running an exe Pin
Richard MacCutchan22-Jan-13 6:34
mveRichard MacCutchan22-Jan-13 6:34 
GeneralRe: Running an exe Pin
PozzaVecia22-Jan-13 6:57
PozzaVecia22-Jan-13 6:57 
GeneralRe: Running an exe Pin
Jibesh22-Jan-13 7:04
professionalJibesh22-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.