Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
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 24-Sep-12 22:28pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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[^]
  Permalink  

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



Advertise | Privacy | Mobile
Web02 | 2.8.150326.1 | Last Updated 25 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100