dynamic pictureBox creation
-
Hi all, I have a form that contains one button and one textbox, the textbox will take a number that will be passed to another form. I have done this successfully. The thing is that I need the second form to create a number of pictureboxes = the number received from the first form. Any ideas?
-
Hi all, I have a form that contains one button and one textbox, the textbox will take a number that will be passed to another form. I have done this successfully. The thing is that I need the second form to create a number of pictureboxes = the number received from the first form. Any ideas?
Do you want to get values of form1 on the form2
WhiteSky
-
Do you want to get values of form1 on the form2
WhiteSky
nope, I've done this. what I want is to create a number of pictureboxes in form2 that equals the number received from form1. thanks,
-
nope, I've done this. what I want is to create a number of pictureboxes in form2 that equals the number received from form1. thanks,
something like this very pseudo-code code ? :
//...
std::vector myPictureBoxVector;
for ( int i = 0; i < NumberFromForm1; i++ )
{
CStatic pStatic = new CStatic;CRect rect;
ComputePosition( rect ); /// <- this will compute the position of the picture box
pStatic->Create( ... );myPictureBoxVector.push_back( pStatic );
//...
}
//...
Maximilien Lincourt Your Head A Splode - Strong Bad
-
something like this very pseudo-code code ? :
//...
std::vector myPictureBoxVector;
for ( int i = 0; i < NumberFromForm1; i++ )
{
CStatic pStatic = new CStatic;CRect rect;
ComputePosition( rect ); /// <- this will compute the position of the picture box
pStatic->Create( ... );myPictureBoxVector.push_back( pStatic );
//...
}
//...
Maximilien Lincourt Your Head A Splode - Strong Bad
thanks alot :)