Click here to Skip to main content
15,922,533 members
Home / Discussions / C#
   

C#

 
GeneralRe: Manually setting MIME type in WebBrowser Pin
Alex Korchemniy27-Dec-03 11:39
Alex Korchemniy27-Dec-03 11:39 
Generaldrop files into windows explorer Pin
elena1234526-Dec-03 7:49
elena1234526-Dec-03 7:49 
GeneralRe: drop files into windows explorer Pin
J. Dunlap26-Dec-03 8:58
J. Dunlap26-Dec-03 8:58 
GeneralRe: drop files into windows explorer Pin
elena1234526-Dec-03 11:22
elena1234526-Dec-03 11:22 
GeneralSimple PDF filling Pin
Alex Korchemniy26-Dec-03 7:22
Alex Korchemniy26-Dec-03 7:22 
GeneralWow this is awesome Pin
Alex Korchemniy26-Dec-03 8:46
Alex Korchemniy26-Dec-03 8:46 
GeneralRe: Wow this is awesome Pin
Kentamanos26-Dec-03 9:31
Kentamanos26-Dec-03 9:31 
GeneralRe: Wow this is awesome Pin
Alex Korchemniy26-Dec-03 12:22
Alex Korchemniy26-Dec-03 12:22 
GeneralRe: Wow this is awesome Pin
Kentamanos26-Dec-03 13:38
Kentamanos26-Dec-03 13:38 
GeneralUnit Testing: Mock Objects Tutorial Pin
drazz7526-Dec-03 6:34
drazz7526-Dec-03 6:34 
GeneralRe: Unit Testing: Mock Objects Tutorial Pin
LongRange.Shooter30-Dec-03 9:54
LongRange.Shooter30-Dec-03 9:54 
GeneralVariable error Pin
Melanius26-Dec-03 4:27
Melanius26-Dec-03 4:27 
GeneralRe: Variable error Pin
Corinna John26-Dec-03 4:55
Corinna John26-Dec-03 4:55 
GeneralRe: Variable error Pin
Melanius26-Dec-03 4:59
Melanius26-Dec-03 4:59 
QuestionHow do I read the Identity Column using ADO.NET Pin
derik_konark26-Dec-03 4:24
derik_konark26-Dec-03 4:24 
AnswerRe: How do I read the Identity Column using ADO.NET Pin
LongRange.Shooter30-Dec-03 10:01
LongRange.Shooter30-Dec-03 10:01 
GeneralProvideProperty Attribute Problem Pin
Takeru Koushirou26-Dec-03 2:22
Takeru Koushirou26-Dec-03 2:22 
GeneralRe: ProvideProperty Attribute Problem Pin
Alex Korchemniy26-Dec-03 7:29
Alex Korchemniy26-Dec-03 7:29 
GeneralRe: ProvideProperty Attribute Problem Pin
Takeru Koushirou26-Dec-03 8:07
Takeru Koushirou26-Dec-03 8:07 
GeneralAdd Column to Access database using OleDB Pin
Wouter Van Ranst26-Dec-03 1:32
Wouter Van Ranst26-Dec-03 1:32 
GeneralRe: Add Column to Access database using OleDB Pin
Heath Stewart27-Dec-03 5:09
protectorHeath Stewart27-Dec-03 5:09 
GeneralRe: Add Column to Access database using OleDB Pin
Wouter Van Ranst27-Dec-03 6:56
Wouter Van Ranst27-Dec-03 6:56 
GeneralRe: Add Column to Access database using OleDB Pin
Heath Stewart27-Dec-03 7:01
protectorHeath Stewart27-Dec-03 7:01 
GeneralRe: Add Column to Access database using OleDB Pin
Wouter Van Ranst27-Dec-03 7:23
Wouter Van Ranst27-Dec-03 7:23 
QuestionSocket Program>????? Pin
h_wing25-Dec-03 22:45
h_wing25-Dec-03 22:45 
i'm make Socket program
this is Receive file this img file, avi file..
but can't Receive XMLfiles

this is source
* Receive File info
================================================================
while(rData!=null)
{
byte[] rbuffer = new Byte[1024];
int rcount = rData.Receive(rbuffer, rbuffer.Length, 0);
string Cm = ed.GetString(rbuffer);
Cm = Cm.Substring(0, rcount);
Cml = null;
Cml = Cm.Split(':');
this.listBox1.Items.Add("Header Info");
this.listBox1.Items.Add("Data Type : " + Cml[0]);
this.listBox1.Items.Add("Data Name : " + Cml[1]);
this.listBox1.Items.Add("Data Length : " + Cml[2]);
if (Cml[0] == "Binnary")
{ FileReceive(rData, Cml);}
else if (Cml[0] == "Str")
{this.listBox1.Items.Add("String Value :" + Cml[3]);}
rData.Close();
rData = null;}
===================================================================
* Receive file
================================================================
FileStream fout = new FileStream(@"c:\youngTemp\" + cml[1]+"1",FileMode.Create, FileAccess.Write);
NetworkStream nfs = new NetworkStream(rData);
long DataSize = int.Parse(cml[2]);
long rby = 0;
try
{
while(rby < DataSize)
{ byte[] buffer = new Byte[1024]; int i = nfs.Read(buffer, 0, buffer.Length); fout.Write(buffer, 0, i); rby += 1;
}
this.listBox1.Items.Add("Success ");}catch(Exception ex)
{
this.listBox1.Items.Add("Error");
this.listBox1.Items.Add("Error is : " + ex.ToString());}
finally{
fout.Close();nfs.Close();
nfs= null;fout = null;}
=====================================================================

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.