Dim radio As New RadioButton
.Text = ""
I want a text-less radio button at 100,100 what did I do wrong? Thanks.
Your on the right track, but you need to specifiy a 'New' location for the button by using '.Location = New System.Drawing.Point(100, 100)' and then telling the form to draw it on the screen using 'Me.Controls.Add(radButton)'
Dim radButton As New RadioButton
.Checked = False
.Text = "Radio Button"
.Location = New System.Drawing.Point(100, 100)
Dim radButton2 As New RadioButton
.Checked = True
.Text = "Radio Button 2"
.Location = New System.Drawing.Point(210, 100)
Here is a screenshot for what the error shows, if you are using visual studio, placing your mouse over the squiggly blue line will give you your answer:
or the error below will tell you: Error 1 Value of type 'String' cannot be converted to 'System.Drawing.Point'. Thus meaning you must create a 'New' point using 'New System.Drawing.Point(#,#)' Your compiler will give you an error but the error usually implies its the answer as well.
This post has been edited by lerning: 10 October 2012 - 07:50 PM