﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Disabling Strataframe-Textboxes</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 22 Apr 2026 13:39:22 GMT</lastBuildDate><ttl>20</ttl><item><title>Disabling Strataframe-Textboxes</title><link>http://forum.strataframe.net/FindPost28311.aspx</link><description>Hi there,&lt;br/&gt;&lt;br/&gt;I don't know if I understand the behaviour of the enabled-property of the strataframe-textbox.&lt;br/&gt;&lt;br/&gt;I am trying to disable a textbox (which I understand as that a control can not receive focus and thus can not be edited), which is not bound to a BO-field. When I set the enabled-property to false, the field can still be edited (changed).&lt;br/&gt;&lt;br/&gt;When I bind a&amp;nbsp;textbox to a BO it is, as described in the help-file, editable when I change the BO to edit-state. &lt;br/&gt;&lt;br/&gt;But when I change the enabled-property for such a field to false to prevent it from being modified when a BO gets in edit-state, it still receives focus and can be changed.&lt;br/&gt;&lt;br/&gt;So by now I can't see what the enabled-property really does? &lt;br/&gt;&lt;br/&gt;I know I could set the read-only property to true but this does not prevent that a textbox gets focus and I can not change the background-color. &lt;br/&gt;&lt;br/&gt;Thanks in Advance&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Tue, 14 Sep 2010 04:46:36 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Disabling Strataframe-Textboxes</title><link>http://forum.strataframe.net/FindPost28362.aspx</link><description>Glad I could help, Thomas. ;)</description><pubDate>Tue, 14 Sep 2010 04:46:36 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Disabling Strataframe-Textboxes</title><link>http://forum.strataframe.net/FindPost28361.aspx</link><description>Hi Ivan,&lt;br/&gt;&lt;br/&gt;sorry if I did confuse you but I was trying both ways unbound and bound.&lt;br/&gt;&lt;br/&gt;Now, thanks to your help everything is working fine.&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Tue, 14 Sep 2010 02:16:35 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Disabling Strataframe-Textboxes</title><link>http://forum.strataframe.net/FindPost28359.aspx</link><description>Sorry, Thomas... you did say it was an unbound control, I missed that one.&lt;br/&gt;&lt;br/&gt;In this case, just set the control's IgnoreManageReadOnlyState to True.&lt;br/&gt;&lt;br/&gt;&lt;img src="http://forum.strataframe.net/Uploads/Images/a9f2dc00-85f6-47cc-81e1-1a79.png"/&gt;</description><pubDate>Mon, 13 Sep 2010 15:24:25 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Disabling Strataframe-Textboxes</title><link>http://forum.strataframe.net/FindPost28357.aspx</link><description>Hi Ivan,&lt;br/&gt;&lt;br/&gt;thanks for your help, I will try this. But what about the non-databound-use of the enabled-property of the textbox? Does this not work by design and should I use some other control for this?&lt;br/&gt;&lt;br/&gt;Best regards&lt;br/&gt;&lt;br/&gt;Thomas</description><pubDate>Mon, 13 Sep 2010 14:03:01 GMT</pubDate><dc:creator>Thomas Holste</dc:creator></item><item><title>RE: Disabling Strataframe-Textboxes</title><link>http://forum.strataframe.net/FindPost28328.aspx</link><description>Hi Thomas.&lt;br/&gt;&lt;br/&gt;Use your BO EditingStateChanged event to deal with that.&lt;br/&gt;&lt;br/&gt;[codesnippet]Private Sub MyBO1_EditingStateChanged( _&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ByVal e As MicroFour.StrataFrame.Business.EditingStateChangedEventArgs) _ &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Handles MyBO1.EditingStateChanged&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If e.EditingState = MicroFour.StrataFrame.Business.BusinessEditingState.Editing Then&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.MyControl.Enabled = False&lt;br/&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;br/&gt;&lt;br/&gt;End Sub[/codesnippet]</description><pubDate>Sat, 11 Sep 2010 07:03:46 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item></channel></rss>