I am doing this in vb.net 2K5 The code below is in a module trying to edit the main form's label control. The error message is: BorderStyle is not a member of System.Windows. Forms.Control.
When it is able to be set in the property window and you can do
Label1.BorderSt yle = BorderStyle.Non e in the Form's Code.
Can anyone help with this?
When it is able to be set in the property window and you can do
Label1.BorderSt yle = BorderStyle.Non e in the Form's Code.
Can anyone help with this?
Code:
For Each ctrl As Control In Form.Controls ctrl.BorderStyle = BorderStyle.None Next
Comment