C# layout & runtime adding of controls

Hi Experts,

I'm setting the location of controls at runtime in c#- but when I add them to the form- they are adding to some sort of default table layout and each control goes into its own column.  I need the absolute coordinates I'm giving to my controls to be used- not this table layout.  Is there a way to use some absolute coordinate layout manager?

Thanks!
Mike
LVL 1
threadyAsked:
Who is Participating?
 
Luis PérezSoftware Architect in .NetCommented:
If you are adding the controls to the Form's Controls collection, there should't be any problem to use absolute coordinates. Anyway, look if the Dock or Anchor property of the controls are the cause of your problem.
0
 
threadyAuthor Commented:
Yep- I was getting my control's right side position before adding it to the form- getting incorrect results..  d-oh!  :)

Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.