Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If a control has child controls then the ChangeTheFont sub is called for each child control, so it again checks if the control passed has child controls and if so calls the sub for each of them and so on and so on. This code is recursive that is the controls in the ChangeTheFont sub call the sub as so will go however many levels you have. Me.controls are the controls of the form if you want to change the controls of a panel then change the controls in it's controls collection. The groupboxes and panels are controls of your form.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |