TextIO Width Limit

46 views
Skip to first unread message

Steve Burrows

unread,
Jul 18, 2025, 7:31:18 AMJul 18
to Migrated By Firefly
Trying to add some fields to a already slightly but not crazy wide TextIO (I am importing from CSV)
Seems there is a limit on the Left position, cant go above 32767px (only 3413 Chars) regardless of the size of the form. If I either drag or manually enter a higher number, it snaps back.
Bug ? Workaround ? Me Missing Something ?

Steve Burrows

unread,
Jul 18, 2025, 7:33:56 AMJul 18
to Migrated By Firefly
By TextIO I mean "ENV.IO.TextLayout "

Noam Honig

unread,
Jul 18, 2025, 7:49:41 AMJul 18
to Steve Burrows, Migrated By Firefly
It's a visual studio bug/limit that th width of the form designer can't exceed the width of your monitor.

To get around this, you can edit the code behind.



Noam Honig  
Founder & CEO


--
You received this message because you are subscribed to the Google Groups "Migrated By Firefly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to migrated-by-fir...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/migrated-by-firefly/b23d58cb-aa37-496b-a4f7-4ec6862457f1n%40googlegroups.com.
Message has been deleted
Message has been deleted

Steve Burrows

unread,
Jul 20, 2025, 2:37:07 AMJul 20
to Migrated By Firefly
Thanks.
Its actally even easier than that.
The size of the TextBox does not limit the number of characters read into it. I have shrunk them to 10 Chars from the expected 256 and they still get all the data in the text file. Now everything easily fits on the form.
Not sure where the limit acutally is defined, nor do I particularly care.

Message has been deleted

Noam Honig

unread,
Jul 20, 2025, 2:39:33 AMJul 20
to Steve Burrows, Migrated By Firefly
Hi Steve,

Checkout this code - you'll enjoy it more when reading and writing csv


Noam Honig  
Founder & CEO

Steve Burrows

unread,
Jul 21, 2025, 1:38:39 AMJul 21
to Migrated By Firefly
Looks like handy code. When I try to add the SeperatedReader class to ENV, I get
Error (active) CS0540 'SeperatedReader.IEnumerable.GetEnumerator()': containing type does not implement interface 'IEnumerable'
 
        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
        {
            return _values.GetEnumerator();
        }

Steve Burrows

unread,
Jul 21, 2025, 2:03:09 AMJul 21
to Migrated By Firefly
Seems to work with that troublesome coded commented out (would like confirmation that this is ok), but there is a bug in the example code. You are missing a "break" at line 55. Without it the seperator is included in subsequent items. Should be:

                            if (i == seperator)
                            {
                                _values.Add(sb.ToString());
                                sb = new StringBuilder();
                                break;
                            }

Noam Honig

unread,
Jul 21, 2025, 5:48:10 AMJul 21
to Steve Burrows, Migrated By Firefly
Hi Steve, 

Could be - its been a while since I worked on it :)

There's a video on how to create it - using unit tests that you may find useful.


Noam Honig  
Founder & CEO

Reply all
Reply to author
Forward
0 new messages