|Alright. So here is the exact issue with all the pictures and everything.
I have a Form which has a FlowLayoutPanel, which has a UserControl on it. That Usercontrol has a Button on it.
The initial text of that Button is "0"
But I want to change that to "1" if it is a "0" and change it back to "0" if it is a "1"
So this is the code I used on the UserControl which has the Button on it:
Public Class UserControl1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Button1.Text = "0" Then
Button1.Text = "1"
ElseIf Button1.Text = "1" Then
Button1.Text = "0"
But when I click on Button1, the event does get fired but the text of the Button1, that is on the UserControl which is drawn on FlowLayoutPanel doesn't get changed.