469,909 Members | 1,741 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,909 developers. It's quick & easy.

Problem with inherited controls

I created and am using, an inherited control on my form. But in switching
between design and code views, the IDE is screwing up the instances'
declarations. Sometimes, everything is fine. But as often, the IDE adds
the project name in front of the control name in the declaration and then
decides the line is invalid. Occasionally, the IDE also deletes the
initialization code for the control.

Specifically, what's happening is that in the "Windows Form Designer
generated code" region, the IDE is changing the line:
Me.TitleLabel = New MyInheritedLabel
to
Me.TitleLabel = New MyTestProject.MyInheritedLabel

I'm using VS 2003 (VB.NET). Is this a known bug? Anyone know of any work
arounds or fix(es)?

Thanks in advance,

Richard Rosenheim
Jul 21 '05 #1
0 765

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Nadav | last post: by
reply views Thread by Jim | last post: by
reply views Thread by 42 | last post: by
3 posts views Thread by Geraldine Hobley | last post: by
4 posts views Thread by Rod Gill | last post: by
4 posts views Thread by asad.naeem | last post: by
4 posts views Thread by Mikus Sleiners | last post: by
reply views Thread by =?Utf-8?B?SGVsZ2U=?= | last post: by
reply views Thread by Paul W | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.