Re: Clever ways to work around the fact that control breaks VS.NET design view? (replacing a literal?)

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Ken,

If you open the file RoundedCornersDesign.cs in VS2005 or 2008, the IDE
should notify you that the ReadWriteControlDesigner is now obsolete and you
should use ContainerControlDesigner instead.

Now, open the file RoundedCorners.cs, change:

[DefaultProperty("Text"), PersistChildren(true), ParseChildren(false),
ToolboxData("<{0}:RoundedCorners runat=server></{0}:RoundedCorners>"),
Designer(typeof(PrettyUI.Design.RoundedCornersDesign))]
public class RoundedCorners : System.Web.UI.WebControls.WebControl
{

into:


[DefaultProperty("Text"), PersistChildren(true), ParseChildren(false),
ToolboxData("<{0}:RoundedCorners runat=server></{0}:RoundedCorners>"),
Designer(typeof(System.Web.UI.Design.ContainerControlDesigner))]
public class RoundedCorners : System.Web.UI.WebControls.WebControl
{


You should see it works in VS2008. Let me know if you still have trouble to
make it work.


Regards,
Walter Wang (wawang@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

.