?
Solved

C# layout & runtime adding of controls

Posted on 2012-09-12
2
Medium Priority
?
548 Views
Last Modified: 2012-09-12
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
0
Comment
Question by:thready
2 Comments
 
LVL 25

Accepted Solution

by:
Luis Pérez earned 2000 total points
ID: 38390847
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
 
LVL 1

Author Closing Comment

by:thready
ID: 38390999
Yep- I was getting my control's right side position before adding it to the form- getting incorrect results..  d-oh!  :)

Thanks
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Integration Management Part 2
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question