Usercontrol size problem

R

Rene Sørensen

In VS 2005 I'm trying to create a usercontrol, but I have some
problems with it right now I can't figure out how to fix. The size of
my usercontrol is "Size 574; 619" I have anchored all controls added
to the form, so I can resize it up and down, and not left and rigth.
My usercontrol is a usercontrol project. In my main program I just
drag and drop the control from the Toolbox, her the problems starts,
the size of all subcontrols changes (gets bigger) so the usercontrol
looks very weirder, now my first thought was, that the size was
different from my usercontrol project, but its not, it's the same, so
I copied all subcontrols size managing into a form load event on the
usrcontrol, that fixed the problem, but I can't imaging that's the way
to do this, dose someone have an idea here how I can fix this?

Here is a picture that show the real size of the control.
http://deltadk.dk/correct.JPG

Here is a picture that shows the usercontrol placed on the main
program,
http://deltadk.dk/weird.JPG
 
R

Rene Sørensen

I fixed this by creating a new form and copy all controls to the new
form. I still have no cluw why size got bigger but this fixed my
ptoblem for now
 
R

Rene Sørensen

I found the problem, it was a font issue on the main form, the fonts
on the main form was bigger than the fonts on the user control.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top