dragging my control to the designer issue

Discussion in 'ASP .Net Building Controls' started by rodchar, Feb 6, 2008.

  1. rodchar

    rodchar Guest

    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
     
    rodchar, Feb 6, 2008
    #1
    1. Advertisements

  2. 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
     
    Coskun SUNALI [MVP], Feb 6, 2008
    #2
    1. Advertisements

  3. rodchar

    rodchar Guest

    how do you do that?

     
    rodchar, Feb 6, 2008
    #3
  4. 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
     
    Coskun SUNALI [MVP], Feb 6, 2008
    #4
  5. rodchar

    rodchar Guest

    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?
     
    rodchar, Feb 6, 2008
    #5
  6. Coskun SUNALI [MVP], Feb 6, 2008
    #6
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.