Panel in Windows Forms Application not clearing
Posted
by SwiftStriker00
on Stack Overflow
See other posts from Stack Overflow
or by SwiftStriker00
Published on 2010-05-11T20:38:27Z
Indexed on
2010/05/12
12:54 UTC
Read the original article
Hit count: 189
I'm working on my project: [Beer Pong Management System][1], a Windows Forms application. I am currently trying to add a whole tournament mode to it. In a nutshell, I've created a TabControl, with the first tab page with the settings and setup and the second page the brackets.
There is a feature for each of the match-ups, that once there is a winner is decided, a yellow cancel button will appear in order to revert the tournament. However my issue is when i click the button the next match-up does not get removed in the series is going. See below:
Image Here(not high enough rep to insert image)
I have tried to set the MatchUp to null, I've tried dispose(), close(). even Parent.Controls.Remove(). Even after I switch tabs which is supposed to clear all, they still sit there when i come back.
I have a feeling I might be loosing a reference or something because I can't even push new teams into them, they just sit there with their buttons.
Does anyone have any tips or know of any known issues that might be causing this? Thanks.
[1] _http://www.cs.rit.edu/~rmb1201/pages/code.shtml
© Stack Overflow or respective owner