Hi Johan, Thanks for that, it did work - eventually - but the problems I had were deeper than I thought. I had two sizers: grid_sizer_3 and sizer_3, and I had got them confused!
Clearly a case of poor naming conventions! Regards Steve -----Original Message----- From: Johan Vromans [mailto:jvrom...@squirrel.nl] Sent: 18 September 2009 03:19 To: Steve Cookson Subject: Re: Deleting Sizers. "Steve Cookson" <steve.cook...@sca-uk.com> writes: > - my $item = > $self->{Ctl_Sizer_3}->GetItem()->$self->{"Ctl_Post_Exam_Videos_Sizer_6_".$gl > _edit_mode}; GetItem requires 1 argument: the thing you're looking for. Assuming you added it to the sizer like this: $self->{"Ctl_Post_Exam_Videos_Sizer_6_".$gl_edit_mode}->Add( $self->{"Ctl_Post_Exam_Videos_Sizer_6_".$gl_edit_mode."_Bmp"}, ...); Then this will work: my $item = $self->{"Ctl_Post_Exam_Videos_Sizer_6_".$gl_edit_mode."_Bmp"}; $self->{"Ctl_Post_Exam_Videos_Sizer_6_".$gl_edit_mode}->Remove($item); (Don't forget to $item->Destroy if you no longer need it) Hope this helps, -- Johan