how to map to a photo?

vmakmp

New member
Joined
May 4, 2022
Messages
1
Programming Experience
Beginner
I am new to C# and need to know how code and map to a student photo. In my example below, when a person selects Student Details for a student, it would go to a student details form. In this form, it would have a photo of the student and other class information.
How do I go about coding that select student to their photo which is located on a local directory, and the photo is named the student id. The student id would be the primary key.

Thank you


2022-05-04 09_44_47-Document1 - Word.png
 
You should be able to detect the selected row then retrieve the underlying ID and find the picture for that record and display it in your viewer.
 
Back
Top Bottom