Click here to Skip to main content
15,914,162 members
Home / Discussions / C#
   

C#

 
GeneralRe: Populate TreeView from a flat file Pin
Luc Pattyn13-Aug-09 2:12
sitebuilderLuc Pattyn13-Aug-09 2:12 
GeneralRe: Populate TreeView from a flat file Pin
ccsalway13-Aug-09 2:13
ccsalway13-Aug-09 2:13 
GeneralRe: Populate TreeView from a flat file Pin
Luc Pattyn13-Aug-09 3:08
sitebuilderLuc Pattyn13-Aug-09 3:08 
QuestionAdd shortcuts to a system tray application Pin
LordZoster12-Aug-09 9:53
LordZoster12-Aug-09 9:53 
AnswerRe: Add shortcuts to a system tray application Pin
Henry Minute12-Aug-09 10:23
Henry Minute12-Aug-09 10:23 
GeneralRe: Add shortcuts to a system tray application Pin
LordZoster12-Aug-09 10:34
LordZoster12-Aug-09 10:34 
AnswerRe: Add shortcuts to a system tray application Pin
LordZoster12-Aug-09 10:37
LordZoster12-Aug-09 10:37 
QuestionEncryption with tcpclient and tcplistner? Pin
Druuler12-Aug-09 8:43
Druuler12-Aug-09 8:43 
Hi!

im new to encryption and would appreciatelittle help Smile | :)
currently im using CryptoStream(RijandelManaged) with NetworkStream and it seems to work except that i dont get all the data right away.

this is my current code:
RijndaelManaged r = new RijndaelManaged();
cryptoReadStream = new CryptoStream(netStream, r.CreateDecryptor(key, iv), CryptoStreamMode.Read);


byte[] buffer= new byte[10000];
cryptoReadStream.Read(buffer,0, buffer.Length);


the problem is:
1.cryptoStream.Read blocks until 10000 bytes have been recived, unlike NetworkStream.Read which returns when theres is nothing more to read,
this is a problem beacuse if the server only writes 10 bytes then ill have to wait forever before i can diplay the results.
AnswerRe: Encryption with tcpclient and tcplistner? Pin
Leonardo Muzzi12-Aug-09 10:16
Leonardo Muzzi12-Aug-09 10:16 
QuestionHow to send file to com1 port ? Pin
E_Gold12-Aug-09 7:28
E_Gold12-Aug-09 7:28 
AnswerRe: How to send file to com1 port ? Pin
stancrm12-Aug-09 7:47
stancrm12-Aug-09 7:47 
Question[Message Deleted] Pin
neha_rai12-Aug-09 6:38
neha_rai12-Aug-09 6:38 
AnswerRe: Ellipse fitting Pin
Rick York12-Aug-09 6:59
mveRick York12-Aug-09 6:59 
QuestionDelegates/Events in Client/Server apps Pin
Nigel Mackay12-Aug-09 5:57
Nigel Mackay12-Aug-09 5:57 
AnswerRe: Delegates/Events in Client/Server apps Pin
stancrm12-Aug-09 6:17
stancrm12-Aug-09 6:17 
QuestionKeyDown event and Tab Indexes trouble ? Pin
Mohammad Dayyan12-Aug-09 5:48
Mohammad Dayyan12-Aug-09 5:48 
AnswerRe: KeyDown event and Tab Indexes trouble ? Pin
Dave Kreskowiak12-Aug-09 6:28
mveDave Kreskowiak12-Aug-09 6:28 
GeneralRe: KeyDown event and Tab Indexes trouble ? Pin
Mohammad Dayyan12-Aug-09 6:42
Mohammad Dayyan12-Aug-09 6:42 
GeneralRe: KeyDown event and Tab Indexes trouble ? Pin
Luc Pattyn12-Aug-09 7:33
sitebuilderLuc Pattyn12-Aug-09 7:33 
GeneralRe: KeyDown event and Tab Indexes trouble ? Pin
Mohammad Dayyan12-Aug-09 7:39
Mohammad Dayyan12-Aug-09 7:39 
GeneralRe: KeyDown event and Tab Indexes trouble ? Pin
Saksida Bojan12-Aug-09 8:26
Saksida Bojan12-Aug-09 8:26 
GeneralRe: KeyDown event and Tab Indexes trouble ? Pin
Luc Pattyn12-Aug-09 8:31
sitebuilderLuc Pattyn12-Aug-09 8:31 
AnswerRe: KeyDown event and Tab Indexes trouble ? Pin
ricmil4212-Aug-09 6:38
ricmil4212-Aug-09 6:38 
GeneralRe: KeyDown event and Tab Indexes trouble ? Pin
Mohammad Dayyan12-Aug-09 6:40
Mohammad Dayyan12-Aug-09 6:40 
GeneralRe: KeyDown event and Tab Indexes trouble ? Pin
Henry Minute12-Aug-09 7:13
Henry Minute12-Aug-09 7:13 

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.