# How to disable text area resizable property

**URL:** <https://discuss.workflowgen.com/t/how-to-disable-text-area-resizable-property/2307>\
**Category:** General WorkflowGen Discussion\
**Created:** [August 5, 2025, 8:36am UTC](https://discuss.workflowgen.com/t/how-to-disable-text-area-resizable-property/2307 "2025-08-05T08:36:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nvarlet](https://avatars.discourse-cdn.com/v4/letter/n/a8b319/32.png) [@nvarlet](https://discuss.workflowgen.com/u/nvarlet)\
**Post date:** [August 5, 2025, 8:36am UTC](https://discuss.workflowgen.com/t/how-to-disable-text-area-resizable-property/2307/1 "2025-08-05T08:36:09Z")

</div>

By default, the text area is resizable :

 ![{68E1131A-2323-4F73-B391-90A30282F5BF}](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/8e45963e1ca6d482e79bcf9e7d5161badc8366ce.png)

You can change this (and justify the text) by configuring the field :

 ![{C607CA94-93EC-4D59-9A0D-4654A19F7071}](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/4204c2526f38b74eb6d8a5e0506352f27e647c17.png)

And here is the function to use :

```auto
// Do not allow resize of text box by user + justify text
private void DoNotResize(object sender, EventArgs e)
{
    (sender as TextBox).Style.Add("resize", "none");
    (sender as TextBox).Style.Add("text-align", "justify");
    //(sender as TextBox).Style.Add("white-space", "pre-line");
    (sender as TextBox).Style.Add("white-space", "normal");
    (sender as TextBox).Style.Add("-moz-text-align-last", "left");
    (sender as TextBox).Style.Add("text-align-last", "left");
}

```
