Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Building Controls (http://www.velocityreviews.com/forums/f59-asp-net-building-controls.html)
-   -   Webcontrol custom designer (http://www.velocityreviews.com/forums/t758032-webcontrol-custom-designer.html)

KK 11-12-2005 08:18 AM

Webcontrol custom designer
 
Hi

I am creating a ASP.NET web server
control. I am extending a panel.

I also want to create a designer
for the panel.

The normal panel, when put into
a webform is visible as a box and
other controls can be put into it.

in my extended panel however, at
design time, I want it to show
a title and an image (whose
properties can be edited by the
property editor) The actual
extended panel should be below
this title and image. Users
should be able to drag and drop
controls into it as a normal panel

However, when i design it, i get the
title, image which works fine. but
users can't drag drop items into it!!

what am trying to make is a collapsible
panel. Sample code out there didn't had
a very intuituive designer with it.

any help is appreciated

KK



Steve C. Orr [MVP, MCSD] 11-14-2005 08:22 PM

Re: Webcontrol custom designer
 
I already made an expanding panel control.
The full source code is available here, along with an article detailing the
design:
http://www.aspnetpro.com/NewsletterA...200512so_l.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


"KK" <kk@kk.com> wrote in message
news:u7S2QI25FHA.1248@TK2MSFTNGP14.phx.gbl...
> Hi
>
> I am creating a ASP.NET web server
> control. I am extending a panel.
>
> I also want to create a designer
> for the panel.
>
> The normal panel, when put into
> a webform is visible as a box and
> other controls can be put into it.
>
> in my extended panel however, at
> design time, I want it to show
> a title and an image (whose
> properties can be edited by the
> property editor) The actual
> extended panel should be below
> this title and image. Users
> should be able to drag and drop
> controls into it as a normal panel
>
> However, when i design it, i get the
> title, image which works fine. but
> users can't drag drop items into it!!
>
> what am trying to make is a collapsible
> panel. Sample code out there didn't had
> a very intuituive designer with it.
>
> any help is appreciated
>
> KK
>
>





All times are GMT. The time now is 05:48 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.