Quote Originally Posted by ebellounisoft View Post
Good. Then I try this:
Code:
Dim panelM As New Panel()
        panelM.Size = New Size(350, 150)
        panelM.Location = New Point(30, addTop - 60)
        panelM.BorderStyle = BorderStyle.Fixed3D
        panelM.AutoScroll = True
        panelM.Controls.Add(txtName)
        panelM.Controls.Add(lblName)
        panelM.Controls.Add(cbAge)
        groupboxSex.Controls.Add(rbttnM)
        groupboxSex.Controls.Add(rbttnF)
        panelM.Controls.Add(groupboxSex)
Run it. Form Shows groupbox but not the RadioButtons and show two dialog boxes , Male and Male(twice).
That's not enough code to be able to help. You haven't shown how you create any of txtName, lblName, cbAge, rbttnM, rbttnF or groupboxSex, nor how you give values to their various properties. And you haven't shown what you add panelM to.