Disabling textbox if a different textbox text is null

Disabling textbox if a different textbox text is null

Post by Nicholas P » Thu, 02 Sep 2004 00:16:18


Aaron,

You could subscribe to the TextChanged event on the textbox, and if the
text is an empty string, then you could disable whatever textboxes you need.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- XXXX@XXXXX.COM
 
 
 

Disabling textbox if a different textbox text is null

Post by Aaro » Thu, 02 Sep 2004 00:16:34

Hello,

I have have a series of textboxes(txtFineReason1 thru txtFineReason6), only
txtFineReason1 is required. This series of textboxes has a corresponding
series of textboxes(txtFine1 thru txtFine6), only txtFine1 is required.

How could I disable txtFine2 thru 6; if there is no keystrokes in
txtFineReason2 thru 6?

TIA

Aaron

 
 
 

Disabling textbox if a different textbox text is null

Post by Aaro » Thu, 02 Sep 2004 01:06:15

Nicholas,

Thanks

Aaron

"Nicholas Paldino [.NET/C# MVP]" < XXXX@XXXXX.COM > wrote in

the
need.