I have an app that uses a side menu, and for each button (there are 3) on the left side menu, it changes the pages shown.
I tried doing it with multiple panels, but it's a nightmare to maintain in designer, and it's probably not a very good programming habit, I expect.
So I search and found what seemed to be a great idea: UserControl
.
But as usual, it's not that simple (for a badly self-taught guy like me)
The general flow of the program is as follows:
- a Btn_uc1_Check button that gathers informations and displays them in a uc1_ListView,
- a Btn_uc2_Seek button that gathers informations on the net based on the uc1_ListView , and displays them on uc2_ListView,
- a Btn_uc3_compile that compiles the info from uc2_ListView into a file,
- a Clear button that clears the ListView depending on the UserControl on screen.
Now to the problem:
- How on earth do I gain access to a ListView located in a UserControl to be able to read, clear, and add items from the MainFrom or from another UserControl?
I searched and honestly found nothing corresponding to what I needed?