Click here to Skip to main content
15,894,017 members
Home / Discussions / C#
   

C#

 
GeneralRe: C++ to C# Translation Pin
Espen Harlinn28-Nov-12 22:00
professionalEspen Harlinn28-Nov-12 22:00 
AnswerRe: C++ to C# Translation Pin
V.28-Nov-12 21:39
professionalV.28-Nov-12 21:39 
AnswerRe: C++ to C# Translation Pin
David Knechtges29-Nov-12 2:55
David Knechtges29-Nov-12 2:55 
QuestionSave data from Unbound C# DataGridView to Sql Server and then Bind Pin
ahmed_one28-Nov-12 0:59
ahmed_one28-Nov-12 0:59 
QuestionError: Interfaces cannot contain fields Pin
Joni_7827-Nov-12 23:43
Joni_7827-Nov-12 23:43 
AnswerRe: Error: Interfaces cannot contain fields Pin
Richard MacCutchan27-Nov-12 23:51
mveRichard MacCutchan27-Nov-12 23:51 
GeneralRe: Error: Interfaces cannot contain fields Pin
Joni_7828-Nov-12 0:03
Joni_7828-Nov-12 0:03 
AnswerRe: Error: Interfaces cannot contain fields Pin
Pete O'Hanlon28-Nov-12 0:06
mvePete O'Hanlon28-Nov-12 0:06 
GeneralRe: Error: Interfaces cannot contain fields Pin
Joni_7828-Nov-12 0:28
Joni_7828-Nov-12 0:28 
GeneralRe: Error: Interfaces cannot contain fields Pin
Joni_7828-Nov-12 0:52
Joni_7828-Nov-12 0:52 
GeneralRe: Error: Interfaces cannot contain fields Pin
Pete O'Hanlon28-Nov-12 1:08
mvePete O'Hanlon28-Nov-12 1:08 
GeneralAbout URL Pin
Varsha R27-Nov-12 20:42
Varsha R27-Nov-12 20:42 
GeneralRe: About URL Pin
Pete O'Hanlon27-Nov-12 20:52
mvePete O'Hanlon27-Nov-12 20:52 
GeneralRe: About URL Pin
girishru12328-Nov-12 22:23
girishru12328-Nov-12 22:23 
QuestionHow do you programmatically expand a url link to its true location? Pin
Xarzu27-Nov-12 20:25
Xarzu27-Nov-12 20:25 
AnswerRe: How do you programmatically expand a url link to its true location? Pin
Bernhard Hiller27-Nov-12 22:11
Bernhard Hiller27-Nov-12 22:11 
QuestionConverted VB.NET to C# With Error Pin
daveofgv27-Nov-12 10:40
daveofgv27-Nov-12 10:40 
AnswerRe: Converted VB.NET to C# With Error Pin
PIEBALDconsult27-Nov-12 12:14
mvePIEBALDconsult27-Nov-12 12:14 
GeneralRe: Converted VB.NET to C# With Error Pin
Eddy Vluggen27-Nov-12 13:38
professionalEddy Vluggen27-Nov-12 13:38 
AnswerRe: Converted VB.NET to C# With Error Pin
Pete O'Hanlon27-Nov-12 20:49
mvePete O'Hanlon27-Nov-12 20:49 
C#
//My.Computer.FileSystem.RenameFile((dest), newName:=sheet.Cells(row, 14).value & "_" & sheet.Cells(row, 15).value)
My.Computer.FileSystem.RenameFile((dest), newName) sheet.Cells(row, 1).value;
Your second line isn't the same as the first one. The reason is down to the fact that in the VB line, it's attempting to put sheet.Cells(row,1).value into the optional parameter newName. In your version, you don't do that - so the statement ends after the call to RenameFile.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

AnswerRe: Converted VB.NET to C# With Error Pin
Bernhard Hiller27-Nov-12 22:19
Bernhard Hiller27-Nov-12 22:19 
AnswerRe: Converted VB.NET to C# With Error Pin
GREG_DORIANcod28-Nov-12 10:10
professionalGREG_DORIANcod28-Nov-12 10:10 
QuestionUrgent Help Pin
Asma AlShehhi27-Nov-12 10:27
Asma AlShehhi27-Nov-12 10:27 
AnswerRe: Urgent Help Pin
R. Giskard Reventlov27-Nov-12 12:19
R. Giskard Reventlov27-Nov-12 12:19 
AnswerRe: Urgent Help Pin
Eddy Vluggen27-Nov-12 12:55
professionalEddy Vluggen27-Nov-12 12:55 

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.