Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
Questionusbclass library Pin
Member 1379116421-Apr-18 4:58
Member 1379116421-Apr-18 4:58 
AnswerRe: usbclass library Pin
OriginalGriff21-Apr-18 5:00
mveOriginalGriff21-Apr-18 5:00 
AnswerRe: usbclass library Pin
jschell21-Apr-18 6:23
jschell21-Apr-18 6:23 
QuestionStateChange event issue in SQL Server 2016 and .net 4.7 ado.net Pin
Arun TBalakrishnan20-Apr-18 14:18
Arun TBalakrishnan20-Apr-18 14:18 
AnswerRe: StateChange event issue in SQL Server 2016 and .net 4.7 ado.net Pin
Gerry Schmitz20-Apr-18 20:19
mveGerry Schmitz20-Apr-18 20:19 
QuestionHow can we copy and move folders in one folder to another folder. Pin
Member 1377710419-Apr-18 20:14
Member 1377710419-Apr-18 20:14 
AnswerRe: How can we copy and move folders in one folder to another folder. Pin
OriginalGriff19-Apr-18 21:35
mveOriginalGriff19-Apr-18 21:35 
AnswerRe: How can we copy and move folders in one folder to another folder. Pin
BillWoodruff20-Apr-18 3:29
professionalBillWoodruff20-Apr-18 3:29 
OriginalGriff has given you some great advice on how to code, and debug.

Getting in the habit of setting break-points in Visual Studio, and then using F11 to single-step through the code, is a very important thing !

Here are a few suggestions, and code examples, to help you work out what's wrong with your code:

1. check that files, and directories, exist before you them.

2. when you want to automatically create a nested Directory structure:
destfile = System.IO.Path.Combine(targetpath + @"\f2\f3\f4", filename);

if (!Directory.Exists(destfile))
{
    new FileInfo(destfile).Directory.Create();
}
3. Your code for 'Move works, but why would you copy a file, and then over-write it when you copy all the files in the same folder ?

Question: is it your intent, here, not to copy internal directories (recursively if nested) ?
«... thank the gods that they have made you superior to those events which they have not placed within your own control, rendered you accountable for that only which is within you own control For what, then, have they made you responsible? For that which is alone in your own power—a right use of things as they appear.» Discourses of Epictetus Book I:12

GeneralRe: How can we copy and move folders in one folder to another folder. Pin
OriginalGriff20-Apr-18 4:09
mveOriginalGriff20-Apr-18 4:09 
GeneralRe: How can we copy and move folders in one folder to another folder. Pin
BillWoodruff20-Apr-18 15:32
professionalBillWoodruff20-Apr-18 15:32 
AnswerRe: How can we copy and move folders in one folder to another folder. Pin
Gerry Schmitz20-Apr-18 7:09
mveGerry Schmitz20-Apr-18 7:09 
QuestionPLEASE HELP ME - I have problem with OpenTK and Loading WaveFront ( obj without materials ) Pin
Jens Eckervogt 19-Apr-18 11:03
Jens Eckervogt 19-Apr-18 11:03 
AnswerRe: PLEASE HELP ME - I have problem with OpenTK and Loading WaveFront ( obj without materials ) Pin
Gerry Schmitz20-Apr-18 7:26
mveGerry Schmitz20-Apr-18 7:26 
GeneralRe: PLEASE HELP ME - I have problem with OpenTK and Loading WaveFront ( obj without materials ) Pin
Jens Eckervogt 20-Apr-18 10:21
Jens Eckervogt 20-Apr-18 10:21 
GeneralRe: PLEASE HELP ME - I have problem with OpenTK and Loading WaveFront ( obj without materials ) Pin
Gerry Schmitz20-Apr-18 12:37
mveGerry Schmitz20-Apr-18 12:37 
GeneralRe: PLEASE HELP ME - I have problem with OpenTK and Loading WaveFront ( obj without materials ) Pin
Jens Eckervogt 21-Apr-18 0:04
Jens Eckervogt 21-Apr-18 0:04 
GeneralRe: PLEASE HELP ME - I have problem with OpenTK and Loading WaveFront ( obj without materials ) Pin
Jens Eckervogt 20-Apr-18 9:39
Jens Eckervogt 20-Apr-18 9:39 
GeneralRe: PLEASE HELP ME - I have problem with OpenTK and Loading WaveFront ( obj without materials ) Pin
Gerry Schmitz20-Apr-18 13:08
mveGerry Schmitz20-Apr-18 13:08 
GeneralRe: PLEASE HELP ME - I have problem with OpenTK and Loading WaveFront ( obj without materials ) Pin
Pete O'Hanlon20-Apr-18 22:11
mvePete O'Hanlon20-Apr-18 22:11 
GeneralRe: PLEASE HELP ME - I have problem with OpenTK and Loading WaveFront ( obj without materials ) Pin
Jens Eckervogt 21-Apr-18 5:15
Jens Eckervogt 21-Apr-18 5:15 
GeneralRe: PLEASE HELP ME - I have problem with OpenTK and Loading WaveFront ( obj without materials ) Pin
Pete O'Hanlon21-Apr-18 5:38
mvePete O'Hanlon21-Apr-18 5:38 
Questionc# how to Temporary pause button click event until mousedoubleclick on new form-listbox shown? Pin
Member 1376930818-Apr-18 23:06
Member 1376930818-Apr-18 23:06 
AnswerRe: c# how to Temporary pause button click event until mousedoubleclick on new form-listbox shown? Pin
Eddy Vluggen18-Apr-18 23:10
professionalEddy Vluggen18-Apr-18 23:10 
AnswerRe: c# how to Temporary pause button click event until mousedoubleclick on new form-listbox shown? Pin
OriginalGriff18-Apr-18 23:50
mveOriginalGriff18-Apr-18 23:50 
AnswerRe: c# how to Temporary pause button click event until mousedoubleclick on new form-listbox shown? Pin
BillWoodruff20-Apr-18 3:59
professionalBillWoodruff20-Apr-18 3:59 

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.