|
-
Jul 1st, 2004, 10:56 AM
#1
Thread Starter
Member
Getting the Location of a control on a form
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|