Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmTextBox Control
Message
 
To
03/02/2006 09:42:47
Rick Forbes
Brotherhood of Maintenance of Way Employ
Royal Oak, Michigan, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01093318
Message ID:
01093628
Views:
18
Rick,

>I would like to place a control on a form that is used for reference only. I don't want it to be enabled, visible, or modifiable. I have set the properties for this control in the designer as follows:
>
>Enable = false
>ReadOnly = true
>Visible = false
>
>When I run the form the control appears enabled, modifiable, and visible. What am I doing wrong???

You need to turn off MM.NET's auto-enable feature. If you retrieve data from the back end and there are no rows in the data table, MM.NET automatically disables UI controls by default (and if there IS data, it enables them). To turn off this behavior, set the mmTextBox control's AutoSetEnabled property = false. For more information, check out the MM.NET Dev Guide topic "Automatically Disabling and Enabling Controls".

Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform