ممكن كود يقوم بعرض صور jpeg اعتمادا على switch , في اطار داخل form ( يعني مش يقوم بفتحها في نافذة جديدة , تنفتح في نفس نافذه البرنامج) من صور محفوظة في الهارد
كود عرض صورة Jpeg
بحثت في مشاركات القسم السابقة ولم اجد موضوع يعالج هذه المشكلة
ربما ارشادي لدالة معينة يفي بالغرض
تفضل هذا Source Code كامل يقوم بتحميل صورة من نوع Jpg وعرضها .

اشهد ان لا إله إلا الله وان محمدا ً رسول الله
- // This is a c++/cli code so try to compare between this and a .net code
- //( Not too much differences)...
- // For example in the paint function...
- void OnPaint(Object^ sender, System::Windows::Forms::PaintEventArgs^ e)
- {
- Image^ photo = Image::FromFile("SUDAN.jpg");
- Rectangle rect = Rectangle(0,0, 200,200);
- e->Graphics->DrawImage(photo, rect);
- }
- // Try this and tell us what happened...
- // The important thing is that there must be an object called Image and has a static
- //function FromImage which has a parameter of the path of your photo.. after that
- //use the graphics handle to draw the photo as you draw any rectangle or line...
- // Good Luck...