Click here to Skip to main content
15,904,023 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
OriginalGriff22-Apr-18 22:49
mveOriginalGriff22-Apr-18 22:49 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
Member 1377710422-Apr-18 23:00
Member 1377710422-Apr-18 23:00 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
OriginalGriff22-Apr-18 23:25
mveOriginalGriff22-Apr-18 23:25 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
Member 1377710422-Apr-18 23:40
Member 1377710422-Apr-18 23:40 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
OriginalGriff22-Apr-18 23:43
mveOriginalGriff22-Apr-18 23:43 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
Member 1377710422-Apr-18 23:57
Member 1377710422-Apr-18 23:57 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
OriginalGriff23-Apr-18 0:08
mveOriginalGriff23-Apr-18 0:08 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
Member 1377710423-Apr-18 1:52
Member 1377710423-Apr-18 1:52 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
OriginalGriff23-Apr-18 1:58
mveOriginalGriff23-Apr-18 1:58 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
Member 1377710423-Apr-18 2:01
Member 1377710423-Apr-18 2:01 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
OriginalGriff23-Apr-18 2:07
mveOriginalGriff23-Apr-18 2:07 
GeneralRe: How to Get Values from XML in COMBO BOX Pin
Member 1377710423-Apr-18 2:10
Member 1377710423-Apr-18 2:10 
QuestionSMS in C# Pin
Member 1349255721-Apr-18 23:17
Member 1349255721-Apr-18 23:17 
AnswerRe: SMS in C# Pin
OriginalGriff21-Apr-18 23:36
mveOriginalGriff21-Apr-18 23:36 
QuestionNpgsqlcommand parameterization doesn't always escape single quote Pin
Member 1379203421-Apr-18 22:24
Member 1379203421-Apr-18 22:24 
AnswerRe: Npgsqlcommand parameterization doesn't always escape single quote Pin
OriginalGriff21-Apr-18 22:44
mveOriginalGriff21-Apr-18 22:44 
QuestionPSFEATURE_CUSTPAPER structure - change paper size in virtual printer Pin
Member 1308759421-Apr-18 9:30
Member 1308759421-Apr-18 9:30 
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

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.