[SOLVED] Access Information on program created control

Post

Posted
Rating:
#1 (In Topic #1133)
Avatar
Enthusiast
sadams54 is in the usergroup ‘Enthusiast’
 I actually have a question.
background:
I have buttons that are created dynamically based on ever changing information. The buttons are placed and arranged with a .text and a .tag
the buttons are attached to a click event that does work.


How do I wipe out the dynamically created buttons so I can make new dynamically created button controls?
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
Look at Control.Delete and Container.Children.Clear

Code (gambas)

  1. ButtonPanel.Children.Clear
  2.  

Code (gambas)

  1. For Each c As Control In ButtonPanel.Children
  2.   If c.Name Like "Del_*" Then c.Delete
  3.  

Code (gambas)

  1. Public Sub AutoDestructiveButton_Click()
  2.  
  3.  Last.Delete
  4.  
  5.  
Online now: No Back to the top

Post

Posted
Rating:
#3
Avatar
Enthusiast
sadams54 is in the usergroup ‘Enthusiast’
Thank you that clued me into the right place
Online now: No Back to the top
1 guest and 0 members have just viewed this.