Hi @Claude Larocque ,
You can pass the Button directly as a parameter to FrmCustomButtonsSetup, so that you can modify the properties of the Button in FrmCustomButtonsSetup.
Public Class Form1
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim fm2 As New Form2(sender)
fm2.Show()
End Sub
End Class
Public Class Form2
Dim BT As Button
Public Sub New(Button As Button)
BT = Button
InitializeComponent()
End Sub
Private Sub TextBox1_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged
BT.Text = TextBox1.Text
End Sub
End Class
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.