"Doesn't typename work either?

It is documented that typeof is, will not work in as many circumstances as typename."

well, typename returns `textbox`, which is fine.
and yes, typeof only works as part of an if..else statement.

The prob is that i dont have the sourcecode to the part of the code which uses typeof.
I have an earlier version of the DLL`s sourcecode, for documentation purposes, but i cant change the corresponding code in the current version of the DLL, as i dont have the current version (and won`t ever have).

If that makes sense!

so i can see why its failing, i was just interested to know why!

(The dll provides some support for keyboard input into a textbox and displaying the output (formatted). seeing as i cant convince it that my textbox is actually a textbox, i`ll have to do the handling myself. Tedious.)