Click here to Skip to main content
15,895,011 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: control is not accessible in code behind Pin
SledgeHammer015-Jan-12 5:02
SledgeHammer015-Jan-12 5:02 
GeneralRe: control is not accessible in code behind Pin
SRKSHOME5-Jan-12 18:51
SRKSHOME5-Jan-12 18:51 
GeneralRe: control is not accessible in code behind Pin
SledgeHammer016-Jan-12 4:50
SledgeHammer016-Jan-12 4:50 
GeneralRe: control is not accessible in code behind Pin
SRKSHOME9-Jan-12 3:21
SRKSHOME9-Jan-12 3:21 
AnswerRe: control is not accessible in code behind Pin
manognya kota5-Jan-12 23:45
manognya kota5-Jan-12 23:45 
GeneralRe: control is not accessible in code behind Pin
Pete O'Hanlon5-Jan-12 23:55
mvePete O'Hanlon5-Jan-12 23:55 
GeneralRe: control is not accessible in code behind Pin
manognya kota6-Jan-12 0:07
manognya kota6-Jan-12 0:07 
QuestionParse string not working Pin
Dammie25-Jan-12 2:29
Dammie25-Jan-12 2:29 
C#
byte[] bytBuffer = new byte[4096]; //holds a block of byte for process.
               long lngBytesProcessed = 0; //running count of byte processed.
               long lngFileLength = fsInput.Length; //the input file is lenght.
               int intBytesIncurrentBlock; //current bytes being processed.

               CryptoStream csCryptoStream;

               //Declare your CryptoServiceProvider.
               System.Security.Cryptography.RijndaelManaged cspRijndael = new System.Security.Cryptography.RijndaelManaged();

               //Setup Progress bar.
               pbStatus.Value = 0;
               pbStatus.Maximum = 100;

               //Determine if encryption or decryption and set setup CryptoStream.

               switch (Direction)
               {
                   case CryptoAction.ActionEncrypt: 
                    csCryptoStream = new CryptoStream(fsOutput, cspRijndael.CreateEncryptor(bytKey, bytIV), CryptoStreamMode.Write);
                    break;

                   case CryptoAction.ActionDecrypt:
                       csCryptoStream=new CryptoStream(fsOutput, cspRijndael.CreateDecryptor(bytKey, bytIV), CryptoStreamMode.Write);
                       break;
                       
               }

               //Use While to loop until all of the file is processed.

               while (lngBytesProcessed<lngFileLength){
                   //Read file with the input filestream.
                   intBytesIncurrentBlock = fsInput.Read(bytBuffer, 0, 4096);

                   //Write output file with the crytostreamm.
                   csCryptoStream.Write(bytBuffer, 0, intBytesIncurrentBlock);

                   //Update lngBytesProcessed.
                   lngBytesProcessed = lngBytesProcessed + long.Parse(intBytesIncurrentBlock);

                   //Update progress bar
                   pbStatus.Value = int.Parse((lngBytesProcessed/lngFileLength)*100);

               }

Am getting this error with the long.Parse and int.Parse,
The best overloaded method match for 'int.Parse(string)' has some invalid arguments
The best overloaded method match for 'long.Parse(string)' has some invalid arguments
Can't convert long or int to string

plss help
AnswerRe: Parse string not working Pin
Pete O'Hanlon5-Jan-12 2:48
mvePete O'Hanlon5-Jan-12 2:48 
QuestionWPF ListBox With Radio Buttons Pin
Kevin Marois4-Jan-12 18:33
professionalKevin Marois4-Jan-12 18:33 
AnswerRe: WPF ListBox With Radio Buttons Pin
SledgeHammer015-Jan-12 5:01
SledgeHammer015-Jan-12 5:01 
GeneralRe: WPF ListBox With Radio Buttons Pin
Kevin Marois5-Jan-12 5:39
professionalKevin Marois5-Jan-12 5:39 
GeneralRe: WPF ListBox With Radio Buttons Pin
SledgeHammer015-Jan-12 6:37
SledgeHammer015-Jan-12 6:37 
GeneralRe: WPF ListBox With Radio Buttons Pin
Kevin Marois5-Jan-12 7:26
professionalKevin Marois5-Jan-12 7:26 
GeneralRe: WPF ListBox With Radio Buttons Pin
SledgeHammer015-Jan-12 7:54
SledgeHammer015-Jan-12 7:54 
GeneralRe: WPF ListBox With Radio Buttons Pin
Kevin Marois5-Jan-12 8:09
professionalKevin Marois5-Jan-12 8:09 
GeneralRe: WPF ListBox With Radio Buttons Pin
SledgeHammer015-Jan-12 8:16
SledgeHammer015-Jan-12 8:16 
GeneralRe: WPF ListBox With Radio Buttons Pin
Kevin Marois5-Jan-12 8:18
professionalKevin Marois5-Jan-12 8:18 
GeneralRe: WPF ListBox With Radio Buttons Pin
Kevin Marois5-Jan-12 8:22
professionalKevin Marois5-Jan-12 8:22 
GeneralRe: WPF ListBox With Radio Buttons Pin
SledgeHammer015-Jan-12 8:30
SledgeHammer015-Jan-12 8:30 
GeneralRe: WPF ListBox With Radio Buttons Pin
Kevin Marois5-Jan-12 11:09
professionalKevin Marois5-Jan-12 11:09 
GeneralRe: WPF ListBox With Radio Buttons Pin
SledgeHammer015-Jan-12 11:18
SledgeHammer015-Jan-12 11:18 
GeneralRe: WPF ListBox With Radio Buttons Pin
Kevin Marois5-Jan-12 11:34
professionalKevin Marois5-Jan-12 11:34 
QuestionListbox / Button Text update Pin
Member 84777754-Jan-12 12:05
Member 84777754-Jan-12 12:05 
AnswerRe: Listbox / Button Text update Pin
SledgeHammer014-Jan-12 12:35
SledgeHammer014-Jan-12 12:35 

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.