Click here to Skip to main content
15,886,689 members
Home / Discussions / C#
   

C#

 
AnswerRe: tcp ip Pin
Mycroft Holmes16-Aug-13 23:11
professionalMycroft Holmes16-Aug-13 23:11 
AnswerRe: tcp ip Pin
Richard MacCutchan17-Aug-13 5:47
mveRichard MacCutchan17-Aug-13 5:47 
GeneralRe: tcp ip Pin
Member 360103425-Aug-13 21:43
Member 360103425-Aug-13 21:43 
GeneralRe: tcp ip Pin
Richard MacCutchan26-Aug-13 4:03
mveRichard MacCutchan26-Aug-13 4:03 
AnswerRe: tcp ip Pin
PIEBALDconsult17-Aug-13 7:08
mvePIEBALDconsult17-Aug-13 7:08 
QuestionChange of file Extension in C# Pin
Ratnadip Kuri16-Aug-13 20:36
professionalRatnadip Kuri16-Aug-13 20:36 
AnswerRe: Change of file Extension in C# Pin
Mycroft Holmes16-Aug-13 20:46
professionalMycroft Holmes16-Aug-13 20:46 
AnswerRe: Change of file Extension in C# Pin
Thomas Daniels16-Aug-13 23:21
mentorThomas Daniels16-Aug-13 23:21 
As Mycroft said, it changes the extension of the path string.
To change the extension of the file, try this:
C#
if (File.Exists(fileName))
{
   string myfile= Path.ChangeExtension(fileName,".ndbm");
   File.Move(fileName, myfile); // <== add this line
   MessageBox.Show("Successfully Changed");
}

Hope this helps.
The quick red ProgramFOX jumps right over the Lazy<Dog>.

My latest article: Understand how bitwise operators work (C# and VB.NET examples)

My group: C# Programmers Group

GeneralRe: Change of file Extension in C# Pin
Mycroft Holmes17-Aug-13 0:10
professionalMycroft Holmes17-Aug-13 0:10 
AnswerRe: Change of file Extension in C# Pin
Ahsan9817-Aug-13 1:29
Ahsan9817-Aug-13 1:29 
GeneralRe: Change of file Extension in C# Pin
Mycroft Holmes17-Aug-13 14:00
professionalMycroft Holmes17-Aug-13 14:00 
GeneralRe: Change of file Extension in C# Pin
OriginalGriff17-Aug-13 20:13
mveOriginalGriff17-Aug-13 20:13 
GeneralRe: Change of file Extension in C# Pin
Ahsan9817-Aug-13 23:25
Ahsan9817-Aug-13 23:25 
GeneralRe: Change of file Extension in C# Pin
OriginalGriff17-Aug-13 23:37
mveOriginalGriff17-Aug-13 23:37 
GeneralRe: Change of file Extension in C# Pin
Mycroft Holmes17-Aug-13 23:37
professionalMycroft Holmes17-Aug-13 23:37 
Questioncomponent for editing information in c# Pin
hadishf16-Aug-13 18:35
hadishf16-Aug-13 18:35 
AnswerRe: component for editing information in c# Pin
Mycroft Holmes16-Aug-13 20:41
professionalMycroft Holmes16-Aug-13 20:41 
GeneralRe: component for editing information in c# Pin
hadishf16-Aug-13 22:33
hadishf16-Aug-13 22:33 
GeneralRe: component for editing information in c# Pin
Mycroft Holmes16-Aug-13 23:10
professionalMycroft Holmes16-Aug-13 23:10 
GeneralRe: component for editing information in c# Pin
hadishf16-Aug-13 23:35
hadishf16-Aug-13 23:35 
GeneralRe: component for editing information in c# Pin
Mycroft Holmes17-Aug-13 0:09
professionalMycroft Holmes17-Aug-13 0:09 
QuestionSystem.Data.SQLite gives attempt to write to read only database Pin
rbsbscrp16-Aug-13 8:57
rbsbscrp16-Aug-13 8:57 
QuestionRe: System.Data.SQLite gives attempt to write to read only database Pin
Eddy Vluggen17-Aug-13 2:36
professionalEddy Vluggen17-Aug-13 2:36 
AnswerRe: System.Data.SQLite gives attempt to write to read only database Pin
rbsbscrp19-Aug-13 11:40
rbsbscrp19-Aug-13 11:40 
AnswerRe: System.Data.SQLite gives attempt to write to read only database Pin
rbsbscrp19-Aug-13 11:48
rbsbscrp19-Aug-13 11:48 

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.