PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework UserControl - size problem in designer

Reply

UserControl - size problem in designer

 
Thread Tools Rate Thread
Old 22-04-2008, 02:23 PM   #1
Michal Rizek
Guest
 
Posts: n/a
Default UserControl - size problem in designer


Hi,
I have problem with using my user controls in designer - desingner ignores
my default size of my control and allways creates new controls with size 200
x 200 points. Since desinger does not show content of usercontrols in CF,
this makes UserControls quite unusable for me...

1) I create new UserControl class called MyUserControl and sets it's size
property e.g. 100 x 50 points.
(I checked generated method InitializeCompoment and it seems fine, size is
set to 100 x 50)

2) I use this control in new Form. When i drag this MyUserControl on the
form, this control is created on this form, but it's size is 200 x 200
instead of 100 x 50.

When i do the same in full Framework, it works fine...

Is there any workabout how to make this work?
Thank for any ideas


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off