Turn off TextBoxWaterMarkExtender

P

pvong

Doing this in VB.Net / VS2008.

I have a bunch of Textboxes with the watermarkextender in Panel1. I'm trying
to write a For Each loop that will turn off this extender with a certain
button. Can someone help me? This is what I tried, but I'm not even close.
Thanks!

For Each ExtenderControl In Panel1.Controls

If TypeOf ExtenderControl Is TextBoxWatermarkExtender Then

Enabled = False

End If

Next
 

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

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,303
Latest member
Ketonara

Latest Threads

Top