Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi all

 

I have several text boxes on my form

 

I am trying to chanage the ReadOnly Property at run time

is there any trick that I can do it by For statement ?

 

see the code

..................

 


Dim ctl As Control
           For Each ctl In Me.Controls
               If TypeOf ctl Is TextBox Then
                   ctl.BackColor = Color.White
'Here I want to say ctl.ReadOnly = false 'But no Found (*&*)
               End If

 

Help me Please

Gary Says: To be a good programmer, you must be good at debugging

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...