[Solved] Replace filename in textbox [closed]
[ad_1] To get absolute path of that file use Path.GetDirectoryName(filePath) and combine it with new file name. You will get new file path If I understood it correctly, then in your case: text1.Text contains full file path. i.e.E:\Files\sample.pdf text2.Text contains new file name. i.e. newfilename.pdf On button_ClickEvent() you want new file name path. i.e. E:\Files\newfilename.pdf … Read more