Click here to Skip to main content
15,849,907 members
Home / Discussions / C#
   

C#

 
QuestionCustomize Quick Access Toolbar for MS Office 2007 applications Pin
Dumb Programmer6-Dec-09 19:34
Dumb Programmer6-Dec-09 19:34 
Questioncrawling a data of a website Pin
uglyeyes6-Dec-09 15:35
uglyeyes6-Dec-09 15:35 
AnswerRe: crawling a data of a website Pin
Mycroft Holmes6-Dec-09 19:48
professionalMycroft Holmes6-Dec-09 19:48 
QuestionBuiltin function for getting all ip addresses? Pin
Jacob Dixon6-Dec-09 15:23
Jacob Dixon6-Dec-09 15:23 
AnswerRe: Builtin function for getting all ip addresses? Pin
Dave Kreskowiak6-Dec-09 16:46
mveDave Kreskowiak6-Dec-09 16:46 
AnswerRe: Builtin function for getting all ip addresses? Pin
Jacob Dixon6-Dec-09 17:59
Jacob Dixon6-Dec-09 17:59 
GeneralRe: Builtin function for getting all ip addresses? Pin
Mycroft Holmes6-Dec-09 19:50
professionalMycroft Holmes6-Dec-09 19:50 
Questionget file name (only) Pin
tamir9016-Dec-09 11:22
tamir9016-Dec-09 11:22 
Hi,

I'm trying to get all the files from directory that ends with *.txt only.
The problem is, when i'm doing:
string[] filePaths = Directory.GetFiles(@"C:\MyDir\", "*.txt");
i get also the path.

How can i get only the filename?

(at the end i have to get a string[] because i need to use it as DataSource)
AnswerRe: get file name (only) Pin
Blue_Boy6-Dec-09 11:29
Blue_Boy6-Dec-09 11:29 
AnswerRe: get file name (only) Pin
PIEBALDconsult6-Dec-09 18:36
mvePIEBALDconsult6-Dec-09 18:36 
GeneralRe: get file name (only) Pin
tamir9016-Dec-09 21:49
tamir9016-Dec-09 21:49 
Question"View Code" Dropdown Pin
bailout006-Dec-09 9:11
bailout006-Dec-09 9:11 
AnswerRe: "View Code" Dropdown Pin
Saksida Bojan6-Dec-09 9:14
Saksida Bojan6-Dec-09 9:14 
GeneralRe: "View Code" Dropdown Pin
bailout006-Dec-09 10:03
bailout006-Dec-09 10:03 
GeneralRe: "View Code" Dropdown Pin
bailout006-Dec-09 10:11
bailout006-Dec-09 10:11 
GeneralRe: "View Code" Dropdown Pin
PIEBALDconsult6-Dec-09 18:39
mvePIEBALDconsult6-Dec-09 18:39 
GeneralRe: "View Code" Dropdown Pin
Dave Kreskowiak6-Dec-09 18:49
mveDave Kreskowiak6-Dec-09 18:49 
QuestionStrange Behavior: base.OnPaint [Solved] Pin
Saksida Bojan6-Dec-09 6:48
Saksida Bojan6-Dec-09 6:48 
AnswerRe: Strange Behavior: base.OnPaint [Solved] Pin
Shameel7-Dec-09 0:14
professionalShameel7-Dec-09 0:14 
QuestionSerialization Pin
hadad6-Dec-09 5:26
hadad6-Dec-09 5:26 
AnswerRe: Serialization Pin
Natza Mitzi6-Dec-09 11:02
Natza Mitzi6-Dec-09 11:02 
QuestionDataGridview Drag and drop visualization Pin
anishkannan6-Dec-09 5:25
anishkannan6-Dec-09 5:25 
AnswerRe: DataGridview Drag and drop visualization Pin
Mycroft Holmes6-Dec-09 14:40
professionalMycroft Holmes6-Dec-09 14:40 
QuestionDraw resizeable and draggable rectangle on picturebox to crop image Pin
thungphan5-Dec-09 22:31
thungphan5-Dec-09 22:31 
AnswerRe: Draw resizeable and draggable rectangle on picturebox to crop image Pin
Luc Pattyn6-Dec-09 2:12
sitebuilderLuc Pattyn6-Dec-09 2:12 

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.