GDI textbox..........

  • Thread starter Thread starter Supra
  • Start date Start date
S

Supra

how do i get textbox1.locked set to true? using GDI vb.net. i wanted to
prevent user typed in txtbox becuase i'm using helpfile for textbox.
ne ideas u can give me a hint?

Dim txthelp As New TextBox
With txthelp
.Parent = Me
.Dock = DockStyle.Fill
.WordWrap = True
.Multiline = True
.ScrollBars = ScrollBars.Vertical
.locked ===========> can't see fielld of locked set to true
end with.
regards
 
* Supra said:
how do i get textbox1.locked set to true? using GDI vb.net. i wanted
to prevent user typed in txtbox becuase i'm using helpfile for
textbox.

I am not sure what this has to do with GDI. You can set the textbox's
'ReadOnly' property to 'True' to prevent the user from changing its
content, or you can set its 'Enabled' property to 'False' to disable the
control.
 
Back
Top