p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   VB.NET 2002/2003 Basics (http://p2p.wrox.com/forumdisplay.php?f=76)
-   -   Disabling VB.Net controls (http://p2p.wrox.com/showthread.php?t=8228)

jaucourt January 16th, 2004 11:02 AM

Disabling VB.Net controls
 
My eight millionth post so for (writing my first vb.net application!)...

I am disabling some edit controls until the user actually explicitly chooses to edit a particular record. I've set the enabled property of the relevant text boxes to false, however this makes values somewhat difficult to read. I can trap the enter event for the text boxes, however I'm not sure how to cancel the attempt to edit. Does anyone know how to do this?

Thanks v much to all those who are providing me with such a lot of help!


planoie January 16th, 2004 11:06 AM

This isn't quite the answer you are looking for but...

Instead of disabling an entry box, could you just use a label for the value and a textbox for entry? Show the label in "view" mode and the textbox in "edit" mode.

Peter
------------------------------------------------------
Work smarter, not harder.

jaucourt January 16th, 2004 11:10 AM

It's ok - I discovered a old thread (http://p2p.wrox.com/topic.asp?TOPIC_...isable,control) that discusses exactly this issue. Thanks again for your help!



All times are GMT -4. The time now is 06:29 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.