Groups | Blog | Home
all groups > dotnet windows forms designtime > april 2008 >

dotnet windows forms designtime : User-control with multiple control containers - design-time issue (mimicing the TabControl)


Olaf Rabbachin
4/23/2008 9:29:57 AM
Hi everybody,

I'm working on a user-control whose behaviour is identical to the
TabControl. That is, there is an area in which the active sub-container
(i.e. TabPage) can be selected plus an area in which users drop controls at
design time.

Browsing the web I found a couple of articles that are geared at enabling
your control so that it works as a container at design time. I.e.:
http://support.microsoft.com/?scid=kb%3Ben-us%3B813450&x=7&y=14
Und:
http://blogs.msdn.com/subhagpo/archive/2005/03/21/399782.aspx

With the help of these articles I was able to have the first TabPage act as
expected. However, I cannot seem to find a way of tweaking the designer so
that, when a different TabPage is being selected, that selected TabPage is
selectable so that I one can drop controls into it.

Any hinters greatly appreciated ...

Cheers,
AddThis Social Bookmark Button