|
-
Jun 28th, 2017, 11:57 AM
#23
Re: How can I call a this Function that returns a RadioButtom name in a GroupBox
 Originally Posted by ebellounisoft
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|