خرید بک لینک

Vote count: 0

I am working with c# in window application, and I am hardcoding the file path into the program. But if I move the application to another PC, that absolutely can't find out the directory of the file.

like this:

dataGridView2.DataSource = ReadCsv("C:\Users\PC\Documents\Visual Studio 2015\Projects\print_report_system\price.csv");

Is it someway to solve this problem?

Sorry for my poor english.

Thx a lot.

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 14 تير 1395 ساعت: 10:39

صفحه بندی