I am trying to modify a form created in VB by someone else. I don't have Windows Form Designer or any other visual form editing software, I am doing it in code only.
I added a GroupBox and 2 radiobuttons inside the group box, but I can't see them. If I put the drawing.point below the form, I can see them. It is as if the GroupBox is opaque and is hiding the radiobuttons. How can I fix this?
The elements on the form I am concerned with are at the bottom of the code snippet, I just wanted to show the top to hopefully put it in context:
Thanks,
Jeff
I added a GroupBox and 2 radiobuttons inside the group box, but I can't see them. If I put the drawing.point below the form, I can see them. It is as if the GroupBox is opaque and is hiding the radiobuttons. How can I fix this?
The elements on the form I am concerned with are at the bottom of the code snippet, I just wanted to show the top to hopefully put it in context:
Code:
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
'Add any initialization after the InitializeComponent() call
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
...
... additional stuff for the form here
...
...
...
groupBox5.Controls.Add(me.radioBtnNX85)
groupBox5.Controls.Add(me.radioBtnNX8)
groupBox5.Controls.Add(radioBtnNX8)
groupBox5.Controls.Add(radioBtnNX85)
groupBox5.Location = New System.Drawing.Point(40, 400)
groupBox5.Size = New System.Drawing.Size(500, 50)
groupBox5.Text = "NX VERSION"
Me.radioBtnNX8.Location = New System.Drawing.Point(45, 425)
Me.radioBtnNX8.Size = New System.Drawing.Size(250, 17)
Me.radioBtnNX8.Text = "NX 8"
Me.radioBtnNX85.Location = New System.Drawing.Point(230, 425)
Me.radioBtnNX85.Size = New System.Drawing.Size(250, 17)
Me.radioBtnNX85.Text = "NX 8.5"
me.radioBtnNX8.checked=true
Jeff