Click here to Skip to main content
12,882,493 members (27,280 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0
Form1: I am using pictureBox in form1 it show image and Image Details.

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.

Posted 24-Sep-12 21:28pm
Rate this: bad
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.
Rate this: bad
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 :[^]

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

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170422.1 | Last Updated 25 Sep 2012
Copyright © CodeProject, 1999-2017
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