Hi,

I am using Visual Studio.net 2005 to develop Windows Form applications
in C++.

My application is a Multiple Document Interface.

For each form opened I would like keep the controls (like picturebox,
buttons) but also other informations (another kind of information -
like and iplimage from the OpenCv Library)

For the first part, I need just to do

"form's name" -> Controls -> Add(""control's name");

How do I associate a class to a form?

Imagine my class is one which derive from another called Mdi

//File: OpenImage.h
ref class Figura : public MDI
{
public:
IplImage * srs;
}

//File OpenImage.cpp
#include "OpenImage.h"

Form ^Image = gcnew Form();
PictureBox ^pb = gcnew PictureBox();
pb->Image = Image::FromFile("lena.jpg");
Image->Controls->Add(pb);
Figura ^ImageCV = gcnew ImageCV;
ImageCV->src = cvLoadImage("lena.jpg", 1);

And now, how can I say that this class ImageCV must be added to the
form Image?

Any help will be very appreciated.

Thanks