I have a path
image11 = new Bitmap(@"E:\C#\ControlsFromWithOfffice2007\ControlsFromWithOfffice2007\bin\Debug\OpenStreetMap I\15\26016\14426.png"); .I want to split specialy symbols "\"in my path .
Ex:
Bitmap(@"E:\C#\ControlsFromWithOfffice2007\ControlsFromWithOfffice2007\bin\Debug\OpenStreetMap I\"+"15"+"\"+"26016"+"\"+"14426"+".png");
But error.Can you help me,please???
Loading

Manikavelu VelayuthamRank #413 · 6K reputationPosted Sep 22, 2010, 11:09 PM EDT
test=@"c:\tEST\TEST.doc";
is same as:
test="c:\\tEST\\TEST.doc";
toanhoi bui70 reputationPosted Sep 23, 2010, 12:36 AM EDT
Thanks,but I want to split the path.Ex I will define 26016 by my function
string a="26016";
image11 = new Bitmap(@"E:\C#\ControlsFromWithOfffice2007\ControlsFromWithOfffice2007\bin\Debug\OpenStreetMap I\15\a\+"14426"+".png");
But Error.Can you help me, please???
Sam HobbsRank #107 · 20.5K reputationPosted Sep 23, 2010, 10:45 AM EDT
toanhoi bui70 reputationPosted Sep 23, 2010, 10:54 AM EDT
Thanks,I done it.I used function Insert in to that string