Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't See my RadioButtons on a Form

Status
Not open for further replies.

jmarkus

Technical User
Oct 15, 2002
124
0
0
CA
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?

Code:
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

Thanks,
Jeff
 
Sorry, but your code don't seem to be VBScript ...
 
Oops, I think I should have put this in the VB.NET forum.

Unless, I'm even more confused than I think I am.

Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top