Quote Originally Posted by Inferrd View Post
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.
Creating them(txtName, lblName,cbAge. groupBoxsex, rbttnM, rbttnF) is the easy part. As you can see they are in the Form. The real problem is with the Function WhatRadioIsSelected (is some where in a post) that searchs for the text of the checked RadioButton..