Solved: Uneditable textbox
Hi all
I have a form that when opened will either allow new records to be added, or allow existing records to be viewed, depending on the OpenArgs. When existing records are being viewed, the user can click an 'Edit' button to allow that record to be edited. In add mode the text boxes look like text boxes, in view mode, I have set them to look like labels (using BackStyle, BorderStyle, etc)
Apart from changing the text boxes, clicking the Edit button also sets the form to AllowEdits. I thought I had this working, but when I was using it today, I noticed that the edit button functionality wasn't working, and the text boxes remain uneditable (the cosmetic stuff still works).
I have checked that the text box is Enabled, and not Locked. I have confirmation that the form has AllowEdits set to True. I have also ensured that the Form's RecordSetType is a DynaSet (not a Snapshot). I can't think of any other properties that would result in this behaviour.
Can anyone give any further ideas on what could stop could stop me editing the data in a textbox?
many thanks
mcalex
Hi all
I have a form that when opened will either allow new records to be added, or allow existing records to be viewed, depending on the OpenArgs. When existing records are being viewed, the user can click an 'Edit' button to allow that record to be edited. In add mode the text boxes look like text boxes, in view mode, I have set them to look like labels (using BackStyle, BorderStyle, etc)
Apart from changing the text boxes, clicking the Edit button also sets the form to AllowEdits. I thought I had this working, but when I was using it today, I noticed that the edit button functionality wasn't working, and the text boxes remain uneditable (the cosmetic stuff still works).
I have checked that the text box is Enabled, and not Locked. I have confirmation that the form has AllowEdits set to True. I have also ensured that the Form's RecordSetType is a DynaSet (not a Snapshot). I can't think of any other properties that would result in this behaviour.
Can anyone give any further ideas on what could stop could stop me editing the data in a textbox?
many thanks
mcalex
Last edited: