Hi
Based on my knowledge, you need to set the ReadOnly for each control.
Also, windows form has a Controls collection, you may try to loop through
the collection to set for each control.
e.g.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
On Error Resume Next 'In case certain control has no ReadOnly
property
Dim cnt As Object
For Each cnt In Me.Controls
cnt.readOnly = True
Next
End Sub
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.