اخواني انا اكتبت هذا الكود ولكن لا يعمل
اقتباسpictureBox1.ImageLocation="D:\images.jpg";
اخواني انا اكتبت هذا الكود ولكن لا يعمل
اقتباسpictureBox1.ImageLocation="D:\images.jpg";
تحية طيبة :
pictureBox1.ImageLocation="D:\\images.jpg";
سلاام.
instead of duplicating the '/' into every directory, another solution is with verbatim string that eliminate all the escape in your string!!
instead of this:
White Wolf كتب:instead of duplicating the '/' into every directory, another solution is with verbatim string that eliminate all the escape in your string!!
"c:\\Program Files\\Adobe\\Flash\Objects\\"
use this :
@"c:\Program Files\Adobe\Flash\Objects\"instead of this:
exactly
مشكورين اخواني .....انا كتبت الكود بالطريقة الاولى اتنفذ كويس بس لما جيت انفذه بالطريقة الثانية ظهر رسالة خطأ
pictureBox1.ImageLocation = "@D:\\Image0009.jpg";
the @ character is before the " character the delimiter of the string OK body
@"c:\Folder1\SubFolerd11" its not inside the string its outside
السلام عليكــم ورحمـة الله وبركاتــه
المشكل أن الرمز \ محجوز عند إستخدامه داخل نص , كما هو الحال لعدة رموز أخرى و في الآن ذلك الرمز يمكن من إستخدام رموز خاصة داخل النصوص لذلك إذا أردت إستخدامه فعليك إستخدامه مسبوق بذاته :) أي تكراره.
الرمز @ يستخدم لإخبار المترجم أن النص الموالي هو مسار و ليس نص عادي.