I have a textbox created in code and displayed on a form.

I need to get the location of the control within the form.

I'm able to get it using

textBox.Location if the control is placed on a form.

BUT, if the control is placed inside a GroupBox (frame) then

textBox.Location return the location of the textBox inside the frame and not the location of the texBox compared with the form.

any ideas how I can get the Location based on the form

note: the my control can any be placed on the form, inside another control or inside a another control that is also inside another control, i.e. a frame in a frame.