Click here to Skip to main content
15,896,154 members
Home / Discussions / C#
   

C#

 
GeneralRe: Remoting !!! Please help Pin
S. Senthil Kumar25-May-05 8:16
S. Senthil Kumar25-May-05 8:16 
GeneralRe: Remoting !!! Please help Pin
AcidProject25-May-05 8:33
AcidProject25-May-05 8:33 
GeneralRe: Remoting !!! Please help Pin
Brian Van Beek25-May-05 11:14
Brian Van Beek25-May-05 11:14 
GeneralShow special signs in listbox Pin
Snowjim25-May-05 6:40
Snowjim25-May-05 6:40 
GeneralRe: Show special signs in listbox Pin
Snowjim25-May-05 7:08
Snowjim25-May-05 7:08 
QuestionHow to download mail from POP3 server in C# Pin
rupali_des25-May-05 6:30
rupali_des25-May-05 6:30 
QuestionHow do i save a stream Pin
Anthony Mushrow25-May-05 6:21
professionalAnthony Mushrow25-May-05 6:21 
AnswerRe: How do i save a stream Pin
pubududilena25-May-05 22:18
pubududilena25-May-05 22:18 
hi,

System.IO.FileStream fs=Get Your Stream here.
DialogResult rs=this.saveFileDialog1.ShowDialog();

byte[] data = new byte[fs.Length - 1];
fs.Read(data, 0, data.Length);
fs.Close();
if(rs==DialogResult.OK)
{
str=(System.IO.FileStream)this.saveFileDialog1.OpenFile();

str.Write(data,0,data.Length);

str.Close();
}

saveFileDialog1 is instance of SaveFileDialog class

Now You can save stream in the harddisk.

regards
pubudu.

GeneralRe: How do i save a stream Pin
Anthony Mushrow26-May-05 1:36
professionalAnthony Mushrow26-May-05 1:36 
GeneralHistory List in TextBox Pin
ravalosv25-May-05 6:13
ravalosv25-May-05 6:13 
GeneralRe: History List in TextBox Pin
John Fisher25-May-05 8:07
John Fisher25-May-05 8:07 
GeneralRe: History List in TextBox Pin
ravalosv25-May-05 12:21
ravalosv25-May-05 12:21 
GeneralRegex Help please Pin
J4amieC25-May-05 5:39
J4amieC25-May-05 5:39 
GeneralRe: Regex Help please Pin
Bitwise Gamgee25-May-05 7:53
Bitwise Gamgee25-May-05 7:53 
GeneralRe: Regex Help please Pin
J4amieC25-May-05 22:04
J4amieC25-May-05 22:04 
GeneralRe: Regex Help please Pin
John Fisher25-May-05 8:04
John Fisher25-May-05 8:04 
GeneralAdd an icon to the form bar to reduce to systemtray icon Pin
Sasuko25-May-05 5:24
Sasuko25-May-05 5:24 
GeneralCreating CHM Tool Pin
r0ssta25-May-05 5:22
r0ssta25-May-05 5:22 
Generalproblem with Image.Save : EncoderParameter(ColorDepth, ??) Pin
kyfranBibax25-May-05 5:11
kyfranBibax25-May-05 5:11 
Generalswitched from VB Pin
Anonymous25-May-05 5:09
Anonymous25-May-05 5:09 
GeneralRe: switched from VB Pin
Stefan Troschuetz25-May-05 5:28
Stefan Troschuetz25-May-05 5:28 
GeneralNUnit -- Testing separate files Pin
vcfirth25-May-05 4:01
vcfirth25-May-05 4:01 
GeneralIEnumerator<> and IDisposable? (VS2005) Pin
Jon Hulatt25-May-05 3:54
Jon Hulatt25-May-05 3:54 
GeneralRe: IEnumerator<> and IDisposable? (VS2005) Pin
Judah Gabriel Himango25-May-05 4:10
sponsorJudah Gabriel Himango25-May-05 4:10 
GeneralHaving trouble with custom combo box Pin
Flack25-May-05 3:45
Flack25-May-05 3:45 

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.