View Single Post
  #2 (permalink)  
Old January 16th, 2007, 12:56 PM
echovue echovue is offline
Friend of Wrox
 
Join Date: Oct 2004
Location: Clinton, UT, USA.
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

The easiest way that I have found of doing this is to set the Locked property of each control to True. Then if you have an Edit button or something, on the Click event for that button unlock each control.

txtTextBox.Locked = False

The other way is to do this is to make the enabled property false, and make it true when the edit button is clicked.

The difference is that when a control is disabled, it will be grayed out, whereas when it is locked the only this different is that you can't change the data.

Hope that helps,

Mike

Mike
EchoVue.com