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. Advertising

  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

    "rodchar" <> wrote in message
    news:D...
    > 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
    Coskun SUNALI [MVP], Feb 6, 2008
    #2
    1. Advertising

  3. rodchar

    rodchar Guest

    how do you do that?

    "Coskun SUNALI [MVP]" wrote:

    > 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
    >
    > "rodchar" <> wrote in message
    > news:D...
    > > 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
    #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

    "rodchar" <> wrote in message
    news:...
    > how do you do that?
    >
    > "Coskun SUNALI [MVP]" wrote:
    >
    >> 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
    >>
    >> "rodchar" <> wrote in message
    >> news:D...
    >> > 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

    >>
    >>
    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?

    "Coskun SUNALI [MVP]" wrote:

    > 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
    >
    > "rodchar" <> wrote in message
    > news:...
    > > how do you do that?
    > >
    > > "Coskun SUNALI [MVP]" wrote:
    > >
    > >> 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
    > >>
    > >> "rodchar" <> wrote in message
    > >> news:D...
    > >> > 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
    #5
  6. Hi,

    I can't help further as long as I don't see the code.



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

    "rodchar" <> wrote in message
    news:...
    > 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?
    >
    > "Coskun SUNALI [MVP]" wrote:
    >
    >> 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
    >>
    >> "rodchar" <> wrote in message
    >> news:...
    >> > how do you do that?
    >> >
    >> > "Coskun SUNALI [MVP]" wrote:
    >> >
    >> >> 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
    >> >>
    >> >> "rodchar" <> wrote in message
    >> >> news:D...
    >> >> > 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
    >> >>
    >> >>

    >>
    >>
    Coskun SUNALI [MVP], Feb 6, 2008
    #6
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TWlzdGVyRWRUWA==?=

    Error When Dragging Control From Tool Box to Web Form - Memory Err

    =?Utf-8?B?TWlzdGVyRWRUWA==?=, Jun 16, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    347
    =?Utf-8?B?TWlzdGVyRWRUWA==?=
    Jun 16, 2006
  2. ghostwolf

    Dragging Control to Content Page

    ghostwolf, Jul 14, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    320
    Mario Vázquez
    Jul 14, 2006
  3. Steve B.
    Replies:
    4
    Views:
    940
    Cheryl D Wise
    Jun 1, 2007
  4. Alexander Higgins
    Replies:
    3
    Views:
    1,062
    Teemu Keiski
    Jul 30, 2007
  5. rajiv malhotra

    Treeview Control Contents Dragging and Dropping

    rajiv malhotra, Oct 2, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    146
    rajiv malhotra
    Oct 2, 2004
Loading...

Share This Page