helleo,
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
c:\cars\gmc\1.png
iwant to be
cars\gmc\1.png
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 :)

Hi,

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.