Jimmy:
There simply is no way to directly access a form's controls or the controls' properties from the form's code behind. I suppose you could access the form's XSL and find out some information about the controls that way, but that would be far too complex to be worth your time.
Would you mind sharing what it is you are trying to accomplish?
Hi Jimmy.
Many thanks for fast response :-)
I'm trying to make a form for entering information by user in two columns. The documents form height is static. I need to know what is the height of the textbox to see if it has already exceeded form and if so, finish typing in the first column and automatically unlock the second collumn (where is a next hidden textbox).
I wrote a Jquery script to show you what effect I would like to have using infopath:
http://c4.livenet.pl/sample1.phpJust type in the first texarea sample text (mode than 50 chars or just 20 enters :-) ) until you will see 3 texareas on the screen. - then you see exactly what I mean.
Regards. Robert.
P.S:: I just realized that my sample script does not work in IE :D, so below screenshoots:


