my English langauge not very good
I hope to help me
my code contain open file dialog that put the path in textbox then insert to database

iwant to cut path
for example
if textbox contain
iwant to be
to insert into database
we assume that path always be
c then car then gmc then 1.png

i use c# eith visuial studio

thank's :)


Please try this
openFileDialog1.FileName.Remove(0,3) which will remove C:\

that's good
thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.