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

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
 
H

Herfried K. Wagner [MVP]

* 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.
 

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