Click here to Skip to main content
16,006,348 members
Home / Discussions / C#
   

C#

 
GeneralRe: Accessing Win32 windows handles/pointers from a C# application/form Pin
Christian Graus25-Mar-08 17:52
protectorChristian Graus25-Mar-08 17:52 
GeneralPreventing TextChanged Event... Pin
teachtech25-Mar-08 13:32
teachtech25-Mar-08 13:32 
GeneralRe: Preventing TextChanged Event... Pin
AB777125-Mar-08 14:59
AB777125-Mar-08 14:59 
GeneralRe: Preventing TextChanged Event... Pin
Abhijit Jana25-Mar-08 19:16
professionalAbhijit Jana25-Mar-08 19:16 
GeneralNeed help with handling exception Pin
TheJudeDude25-Mar-08 12:53
TheJudeDude25-Mar-08 12:53 
GeneralRe: Need help with handling exception Pin
AB777125-Mar-08 15:04
AB777125-Mar-08 15:04 
GeneralRe: Need help with handling exception Pin
TheJudeDude25-Mar-08 16:26
TheJudeDude25-Mar-08 16:26 
GeneralRe: Need help with handling exception Pin
AB777125-Mar-08 17:31
AB777125-Mar-08 17:31 
jsut make the following changes

try
{
File.Copy("F:\\BORIS\\" + strFilename, Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\" + strFilename,true);
strFilename = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + "\\" + strFilename;

}
catch
{
MessageBox.Show("The file " + strFilename + " can not be found. Please check " +
"that you selected the correct store and that your network connection to" +
" drive F: is not disconnected","File Not Found", MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
strFilename = string.Empty;
}

return strFilename;


and when u call the method OpenFile()
just check if the return string is Empty or not
if it is empty string dont do any thing else process furhter.

Hope that is what you want to do...

Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"

GeneralRe: Need help with handling exception Pin
TheJudeDude25-Mar-08 17:50
TheJudeDude25-Mar-08 17:50 
GeneralRe: Need help with handling exception Pin
TheJudeDude25-Mar-08 18:00
TheJudeDude25-Mar-08 18:00 
GeneralRe: Need help with handling exception Pin
AB777125-Mar-08 18:04
AB777125-Mar-08 18:04 
GeneralRe: Need help with handling exception Pin
TheJudeDude25-Mar-08 18:32
TheJudeDude25-Mar-08 18:32 
QuestionSMS through CellPhone? Pin
NewToAspDotNet25-Mar-08 10:38
NewToAspDotNet25-Mar-08 10:38 
AnswerRe: SMS through CellPhone? Pin
Giorgi Dalakishvili25-Mar-08 11:05
mentorGiorgi Dalakishvili25-Mar-08 11:05 
AnswerRe: SMS through CellPhone? Pin
led mike25-Mar-08 11:06
led mike25-Mar-08 11:06 
AnswerRe: SMS through CellPhone? Pin
Vasudevan Deepak Kumar25-Mar-08 20:20
Vasudevan Deepak Kumar25-Mar-08 20:20 
GeneralAfter the Restoration of a DB with Stored Procedures are not recognised Pin
Vimalsoft(Pty) Ltd25-Mar-08 10:23
professionalVimalsoft(Pty) Ltd25-Mar-08 10:23 
GeneralRe: After the Restoration of a DB with Stored Procedures are not recognised Pin
Not Active25-Mar-08 10:29
mentorNot Active25-Mar-08 10:29 
GeneralRe: After the Restoration of a DB with Stored Procedures are not recognised Pin
Vimalsoft(Pty) Ltd25-Mar-08 11:25
professionalVimalsoft(Pty) Ltd25-Mar-08 11:25 
GeneralRe: After the Restoration of a DB with Stored Procedures are not recognised Pin
Christian Graus25-Mar-08 11:45
protectorChristian Graus25-Mar-08 11:45 
GeneralRe: After the Restoration of a DB with Stored Procedures are not recognised Pin
Vimalsoft(Pty) Ltd25-Mar-08 20:42
professionalVimalsoft(Pty) Ltd25-Mar-08 20:42 
GeneralCreate Rule in runtime mode Pin
cocoonwls25-Mar-08 8:41
cocoonwls25-Mar-08 8:41 
GeneralRe: Create Rule in runtime mode Pin
Gareth H25-Mar-08 9:14
Gareth H25-Mar-08 9:14 
GeneralRe: Create Rule in runtime mode Pin
Giorgi Dalakishvili25-Mar-08 9:28
mentorGiorgi Dalakishvili25-Mar-08 9:28 
GeneralRe: Create Rule in runtime mode Pin
Not Active25-Mar-08 10:37
mentorNot Active25-Mar-08 10:37 

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.