N
Nacho Nachev
Hello,
I have a readonly textbox that is limited in width. There are cases when the
text in it exceeds this limit. In such cases I want to add "..." at the end
(for example: "somelongt..."). The problem is that I don't know how many
characters the control cancontain, because its seems that there is not
concept of font width.
Is there some pattern for doing this in .NET WinForms? Or is it safe to
count the number of characters that the control can hold on my machine and
hardcode it, assuming that it will be this on all configuration? The form is
not sizeable.
Thank you for your time,
Nacho
I have a readonly textbox that is limited in width. There are cases when the
text in it exceeds this limit. In such cases I want to add "..." at the end
(for example: "somelongt..."). The problem is that I don't know how many
characters the control cancontain, because its seems that there is not
concept of font width.
Is there some pattern for doing this in .NET WinForms? Or is it safe to
count the number of characters that the control can hold on my machine and
hardcode it, assuming that it will be this on all configuration? The form is
not sizeable.
Thank you for your time,
Nacho