C
C#3mo ago
Hyper Zero

Copying a panel

I'm makin a game like wordle clones for games i have a panel i want to copy it if value is wrong then put it into bellow the main panel and contiune to doing it until value is right
3 Replies
Pobiega
Pobiega3mo ago
This strikes me as an obvious XY problem And that is that you have a problem, X, and you've thought of a solution Y. So you are asking for help with Y. But your actual problem is still X, and Y is actually not a very good solution to X in the case of making a wordle UI, I would not recommend actually copying panels, rather just have all the panels from the start and populate their data accordingly
Hyper Zero
Hyper Zero3mo ago
but my game isnt exaclty a wordle copy there is no limit i can send a example site if you want i want to make unlimited copys everytime wrong answer entered
Pobiega
Pobiega3mo ago
still, you shouldnt be copying anything you could make a custom control that represents one "row", then have a stacking layout and just add your rows to that