how to the path of My Documents
and if i have text box and i want to write it to file C# will pull all the text on
one line how to solve this problem
and i am sorry for writing english but the pc i work on dose not support arabic
how to the path of My Documents
and if i have text box and i want to write it to file C# will pull all the text on
one line how to solve this problem
and i am sorry for writing english but the pc i work on dose not support arabic
للأسف مفيش في ال environment في ال c# دالة لل MyDocuments
استخدم الكود ده :
string path = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
string [] PathOfMyDocument=path.Split('\\');
MessageBox.Show(PathOfMyDocument[0]+"\\"+PathOfMyDocument[1]+"\\"+PathOfMyDocument[2]+"\\"+PathOfMyDocument[3]);
MessageBox.Show(path);سلام
اسف للرد المتاخر ولكن كنت مشغول جدا في الفترة الاخيرة
شكرا للاجابة عن السؤال ولكنك اجبت عن سؤال واحد والسؤال الاخر هو كيف يمكنني نسخ محتيات textbox الى ملف
حيث انني عندما انسخ المحتويات فانه يكتب النص كله في سطر واحد فكيف يمككني المحافظة على ترتيب الاسطر وشكرا
هذا الموضوع مغلق.