Welcome

Someone know? how to change property (Multiline) for a TextBox to True in run - time with simultaneous change his size (height)

Always, when I trying it finish with a get of error >> Can’t assign to read-only property <<

I try to do in this way:

VB Code:
  1. Private Sub Command1_Click()
  2.  
  3. With Text1
  4.  
  5.   .MultiLine = True
  6.   .ScrollBars = 2
  7.   .Height = 300
  8.  
  9. End With
  10.  
  11. End Sub

But something is a wrong, how correctly to make this?

Thanks in advance