Feature or did I miss something?

  • Thread starter Thread starter DotNet007
  • Start date Start date
D

DotNet007

Hi to All,

Is the TextBox automaticaly readonly when the binded underlying DataView
..AllowEdit is false?

Generally: How can I make read only forms?

( Note: I dont want to disable the textboxes, so disabling their container
( panel, groupbox, form etc) is not a solution )

thx for answers
 
Dim Obj As Object

For Each Obj In Me.Controls

If Obj.GetType.Name.ToString = "TextBox" Then

With DirectCast(Obj, TextBox)

.ReadOnly = True

.Enabled = False

...........

End With

End If

Next

Hope this points you in the good direction,

Michael
 
Back
Top