Click here to Skip to main content
15,883,917 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Form1: I am using pictureBox in form1 it show image and Image Details.

Form2:
Form2 to show DataGridView to display column like that

Image Name,Description Image,Username,Modified Date,image type.


How to display details.
Form1 to form2 how to display attachment of image details show in DataGridView.

Regards,
Karthikeyan,
Bangalore
Posted

this is helps to you.
before going that first you can get an idea passing the values between two forms. then you can pass the control(Image/Picture) values to another form.
for example : http://codeincsharp.blogspot.in/2008/04/how-to-pass-values-to-another-form.html[^]
 
Share this answer
 
Set up a set of public properties in Form2 (or a single with new "Information" class).
In the property setter, update the DateGridview with the information.

Form1 then just sets the property or properties when the image changes.

This assumes that Form2 is opened from Form1, so Form1 can keep a reference to the instance.
If it doesn't, then Form1 needs both a public property to provide the info, and an Event to signal to the class that opened it that the information has changed.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900