Feature or did I miss something?

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
 
M

Michael Maes

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top