A
Angelo
VS Version: 2008
..Net Version: 3.5 sp1
Hello,
I have just started using scroll bars in a user control (called
DisplayCtrl) and it seems that the Location property for any .Net
Control (e.g TextBox) that I place in my DisplayCtrl references the
upper-left corner for the encapsulating dialog, but *not* the
DisplayCtrl that it was placed in. So, to calculate the TextBox
Location inside the DisplayCtrl, I must add the Location with the
corresponding scroll positions of the DisplayCtrl.
Is it possible to get the TextBox Location in terms of the upper-left
of my DisplayCtrl if I only have a reference to the TextBox (and not
the DisplayCtrl)?
I hope I am begin clear enough on what is going on and what I am
looking to do.
If more details are needed, I would be happy to share.
Thanks
AJ
..Net Version: 3.5 sp1
Hello,
I have just started using scroll bars in a user control (called
DisplayCtrl) and it seems that the Location property for any .Net
Control (e.g TextBox) that I place in my DisplayCtrl references the
upper-left corner for the encapsulating dialog, but *not* the
DisplayCtrl that it was placed in. So, to calculate the TextBox
Location inside the DisplayCtrl, I must add the Location with the
corresponding scroll positions of the DisplayCtrl.
Is it possible to get the TextBox Location in terms of the upper-left
of my DisplayCtrl if I only have a reference to the TextBox (and not
the DisplayCtrl)?
I hope I am begin clear enough on what is going on and what I am
looking to do.
If more details are needed, I would be happy to share.
Thanks
AJ