G
Guest
I can’t find a way to determine how high a label control should be when the
text is longer than the width of the label. The Graphics.MesureSting on CF2.0
does not support multiple lines.
Does anybody know how to measure the number of lines a sting requires within
a given width, without using the DirectX libraries( as I am not sure how to,
nor wish to )?
Further context, the application I am writing, reads an XML file full of
text questions and creates controls on tab pages to gather input from the
user. The controls are created at runtime, the app has to layout the
questions correctly, which means that I need to know how many lines of text
are required to display a string within a given width.
text is longer than the width of the label. The Graphics.MesureSting on CF2.0
does not support multiple lines.
Does anybody know how to measure the number of lines a sting requires within
a given width, without using the DirectX libraries( as I am not sure how to,
nor wish to )?
Further context, the application I am writing, reads an XML file full of
text questions and creates controls on tab pages to gather input from the
user. The controls are created at runtime, the app has to layout the
questions correctly, which means that I need to know how many lines of text
are required to display a string within a given width.