dragging my control to the designer issue

R

rodchar

hey all,
when i drag my control, that i built, on to the designer it shows up as the
smallest possible size. almost looks like a dot until i resize it then all
the controls show up.

can someone please explain?

thanks,
rodchar
 
C

Coskun SUNALI [MVP]

Hi,

It is because most probably you didn't specify any default values for width
and height and the control thinks that its width and height are set to 0px.

Can you check that and let me know if you still keep having problems?

--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
http://www.propeople.dk
 
R

rodchar

how do you do that?

Coskun SUNALI said:
Hi,

It is because most probably you didn't specify any default values for width
and height and the control thinks that its width and height are set to 0px.

Can you check that and let me know if you still keep having problems?

--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
http://www.propeople.dk
 
C

Coskun SUNALI [MVP]

Hi,

You can do that in the constructor or you can create your own business rules
to do that or not to do that. It is up to you. You just need to check if
they are zero and set to an higher value if they are.

--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
http://www.propeople.dk
 
R

rodchar

i tried setting the height and width but the effects were at runtime. the
problem i'm having is in the designer. am i missing an attribute or something?
 

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top