T
TheSteph
Hi,
In the example below, do I have to call Dispose for the 2 ImageList ?
Do I have to do it in the Form.Disposed event ?
public class FRM_NavBrowseConfig : Form
{
//...
private ImageList FSmallImageList = new ImageList();
private ImageList FLargeImageList = new ImageList();
//...
// *** IS THIS CORRECT/NECESSARY ? ***
public FRM_NavBrowseConfig()
{
this.Disposed += new EventHandler(FRM_NavBrowseConfig _Disposed);
}
static void FRM_NavBrowseConfig _Disposed(object sender, EventArgs e)
{
FSmallImageList.Dispose()
FLargeImageList.Dispose()
}
// *** END ***
}//EndClass FRM_NavBrowseConfig
Thanks for any advices !!
Steph.
In the example below, do I have to call Dispose for the 2 ImageList ?
Do I have to do it in the Form.Disposed event ?
public class FRM_NavBrowseConfig : Form
{
//...
private ImageList FSmallImageList = new ImageList();
private ImageList FLargeImageList = new ImageList();
//...
// *** IS THIS CORRECT/NECESSARY ? ***
public FRM_NavBrowseConfig()
{
this.Disposed += new EventHandler(FRM_NavBrowseConfig _Disposed);
}
static void FRM_NavBrowseConfig _Disposed(object sender, EventArgs e)
{
FSmallImageList.Dispose()
FLargeImageList.Dispose()
}
// *** END ***
}//EndClass FRM_NavBrowseConfig
Thanks for any advices !!
Steph.