I have an application in which I have 2 forms.
1.Review Form 2. FilmForm.
Review Form is used for Loading some images and we can transfer the
Images from Review From to FilmForm by Drag-Drop operation by left
Click of Mouse.
FilmForm is comprised of UserControl placed over a Panel in a
GridFormat.
UserControl can have ChildControl too placed over it which are known
as Insetcontrol.
Under current operation my application is freezing:
Pre Condition: Current Grid LayOut of FilmForm is 2x2 it mean there
are 4 user Controls placed over FilmForm.
Now I transfer 6 Images from ReviewForm to FilmForm and Drop it on
UserControl of 1st Row and second Column(means Leaving first
UserControl Blank).
1st Image is Displayed on the UserControl of 1st Row and 2nd Column
and 2 Child Controls are displayed as Inset.
2nd Image is Displayed on the UserControl of 2nd Row and 1st
Column and 2 Child Controls are displayed as Inset.
3rd Image is Displayed on the UserControl of 2nd Row and 2nd Column
and 2 Child Controls are displayed as Inset.
After this the application moves to Second Sheet in FilmForm which
means the Same UserControls are Reused by Removing all the Existing
Images and ChildControls.
Then in Sheet 2:
Image of First UserControl on 1st Row and 1st Column is Removed and
Then child Control is Removed (But as it was blank in Sheet 1 so there
is nothing to Remove)
4th image is Displayed on that Control.
Now in 2nd UserControl of 1st Row and 2nd Column gets operated .
This is the same control in which Drop operation was performed in
Sheet 1.
In case of This Control when I try to execute
UserControl.Controls.Clear(for removal of
Existing child control my application gets hanged and never come out
of this statement.
This problem occur only in case of the Control in which Drop operation
was performed.
I need urgent help for same.
Regards
Arvind