Click here to Skip to main content
15,895,256 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: DataGrid control WinFroms Pin
John_Adams30-Apr-08 22:45
John_Adams30-Apr-08 22:45 
QuestionHow to change a panel's controls from another form? Pin
DogMa3x7-Sep-07 11:59
DogMa3x7-Sep-07 11:59 
QuestionMultiple Forms Subscribing to the same event/data? Pin
basi00147-Sep-07 6:57
basi00147-Sep-07 6:57 
GeneralCrystal Reports ButtonTranslate Method Pin
Juan Pablo G.C.6-Sep-07 22:48
Juan Pablo G.C.6-Sep-07 22:48 
GeneralRe: Crystal Reports ButtonTranslate Method Pin
Chetan Patel7-Sep-07 2:44
Chetan Patel7-Sep-07 2:44 
QuestionError on file.copy Pin
samerh6-Sep-07 21:30
samerh6-Sep-07 21:30 
AnswerRe: Error on file.copy Pin
Chetan Patel7-Sep-07 2:41
Chetan Patel7-Sep-07 2:41 
AnswerRe: Error on file.copy Pin
Scott Dorman7-Sep-07 4:57
professionalScott Dorman7-Sep-07 4:57 
Are both filepath and destinationpath parameters a fully qualified file name or is destinationpath just the target folder? File.Copy can only copy files, so both parameters need to be fully qualified file names.

Look at the File.Copy Method (String, String)[^] docs, specifically at the IOException information listed under the Exceptions section.

You will get this exception if an I/O error occurs (unlikely) or the destination already exists, which is what is happening here. You can either do a File.Exists test before the copy and only copy if the file doesn't exist, or use the File.Copy(String, String, Boolean) form and pass in true as the boolean value to indicate that you want to overwrite the file.


Scott.

—In just two days, tomorrow will be yesterday.

[Forum Guidelines] [Articles] [Blog]

QuestionDropdown list event in Windows forms (.NET 2.0) Pin
Subrahmanyam K6-Sep-07 1:45
Subrahmanyam K6-Sep-07 1:45 
Questionundo Pin
ellllllllie5-Sep-07 4:38
ellllllllie5-Sep-07 4:38 
AnswerRe: undo Pin
Dave Kreskowiak5-Sep-07 5:23
mveDave Kreskowiak5-Sep-07 5:23 
AnswerRe: undo Pin
Pete O'Hanlon5-Sep-07 12:12
mvePete O'Hanlon5-Sep-07 12:12 
GeneralRe: undo Pin
Paul Conrad26-Sep-07 16:16
professionalPaul Conrad26-Sep-07 16:16 
QuestionWinForms Applications connected to databases best practices Pin
Marcosm644-Sep-07 15:24
Marcosm644-Sep-07 15:24 
AnswerRe: WinForms Applications connected to databases best practices Pin
Giorgi Dalakishvili4-Sep-07 20:50
mentorGiorgi Dalakishvili4-Sep-07 20:50 
GeneralRe: WinForms Applications connected to databases best practices Pin
Marcosm645-Sep-07 9:02
Marcosm645-Sep-07 9:02 
QuestionMore trouble with tool tips... Pin
chaiguy13374-Sep-07 15:08
chaiguy13374-Sep-07 15:08 
QuestionGet the folder path Pin
vimal_yet4-Sep-07 1:16
vimal_yet4-Sep-07 1:16 
AnswerRe: Get the folder path Pin
Spacix One4-Sep-07 10:43
Spacix One4-Sep-07 10:43 
QuestionDropdown column in Datagrid Pin
André Stroebel4-Sep-07 0:09
André Stroebel4-Sep-07 0:09 
AnswerRe: TreeView Navigation Pin
Giorgi Dalakishvili2-Sep-07 10:02
mentorGiorgi Dalakishvili2-Sep-07 10:02 
GeneralRe: TreeView Navigation Pin
Luc Pattyn3-Sep-07 5:27
sitebuilderLuc Pattyn3-Sep-07 5:27 
GeneralRe: TreeView Navigation Pin
Pete O'Hanlon3-Sep-07 9:11
mvePete O'Hanlon3-Sep-07 9:11 
GeneralRe: TreeView Navigation Pin
Luc Pattyn3-Sep-07 9:18
sitebuilderLuc Pattyn3-Sep-07 9:18 
QuestionEnable the smart tag menu at run-time Pin
kaminem31-Aug-07 2:53
kaminem31-Aug-07 2:53 

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.