Click here to Skip to main content
15,881,204 members
Home / Discussions / C#
   

C#

 
AnswerRe: Selected row in data grid Pin
he.david88-Apr-09 6:09
he.david88-Apr-09 6:09 
AnswerRe: Selected row in data grid Pin
Henry Minute8-Apr-09 11:07
Henry Minute8-Apr-09 11:07 
AnswerFound it ! Pin
mrkeivan9-Apr-09 7:28
mrkeivan9-Apr-09 7:28 
QuestionHow to check if a file is encrypted Pin
Russell Napier8-Apr-09 4:49
Russell Napier8-Apr-09 4:49 
AnswerRe: How to check if a file is encrypted Pin
Xmen Real 8-Apr-09 5:01
professional Xmen Real 8-Apr-09 5:01 
AnswerRe: How to check if a file is encrypted Pin
0x3c08-Apr-09 5:02
0x3c08-Apr-09 5:02 
GeneralRe: How to check if a file is encrypted Pin
Russell Napier8-Apr-09 5:10
Russell Napier8-Apr-09 5:10 
GeneralRe: How to check if a file is encrypted Pin
Dan Neely8-Apr-09 5:50
Dan Neely8-Apr-09 5:50 
First, use the code block formatting on code samples.

Second, if your code's written like this (had to insert a few extra }'s), unless you have a throw statement inside the catch block the exception shouldn't break the loop. That should only happen if the entire loop is inside a try/catch block instead of each iteration of it.

for each (File......)
{
  try 
  {
    load file into a byte array
    try and decrypt data in byte array
  }
  catch (Exception ex)
  {
     Oh no, failed to decrypt..
  }
}


Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall

GeneralRe: How to check if a file is encrypted Pin
Le centriste8-Apr-09 5:55
Le centriste8-Apr-09 5:55 
AnswerRe: How to check if a file is encrypted Pin
Luc Pattyn8-Apr-09 5:15
sitebuilderLuc Pattyn8-Apr-09 5:15 
GeneralRe: How to check if a file is encrypted Pin
Russell Napier8-Apr-09 5:19
Russell Napier8-Apr-09 5:19 
GeneralRe: How to check if a file is encrypted Pin
Luc Pattyn8-Apr-09 5:32
sitebuilderLuc Pattyn8-Apr-09 5:32 
AnswerRe: How to check if a file is encrypted Pin
Dave Kreskowiak8-Apr-09 5:23
mveDave Kreskowiak8-Apr-09 5:23 
GeneralRe: How to check if a file is encrypted Pin
Russell Napier8-Apr-09 5:26
Russell Napier8-Apr-09 5:26 
GeneralRe: How to check if a file is encrypted Pin
Luc Pattyn8-Apr-09 5:33
sitebuilderLuc Pattyn8-Apr-09 5:33 
GeneralRe: How to check if a file is encrypted Pin
Russell Napier8-Apr-09 5:36
Russell Napier8-Apr-09 5:36 
GeneralRe: How to check if a file is encrypted Pin
Dan Neely8-Apr-09 5:52
Dan Neely8-Apr-09 5:52 
QuestionPicture compression Pin
yasa8-Apr-09 4:33
yasa8-Apr-09 4:33 
AnswerRe: Picture compression Pin
Luc Pattyn8-Apr-09 5:29
sitebuilderLuc Pattyn8-Apr-09 5:29 
QuestionClient Server Pin
mrithula88-Apr-09 4:23
mrithula88-Apr-09 4:23 
QuestionProblem with SQL-Server Date Query Pin
der.flori8-Apr-09 4:08
der.flori8-Apr-09 4:08 
AnswerRe: Problem with SQL-Server Date Query Pin
Dino Mulahusic8-Apr-09 4:12
professionalDino Mulahusic8-Apr-09 4:12 
GeneralRe: Problem with SQL-Server Date Query Pin
der.flori8-Apr-09 4:21
der.flori8-Apr-09 4:21 
GeneralRe: Problem with SQL-Server Date Query Pin
Searril8-Apr-09 4:29
Searril8-Apr-09 4:29 
GeneralRe: Problem with SQL-Server Date Query Pin
Dino Mulahusic8-Apr-09 4:30
professionalDino Mulahusic8-Apr-09 4:30 

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.