StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



How to get VS to serialize code to designer...Expand / Collapse
Author
Message
Posted 08/19/2008 10:22:22 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 7:04:19 PM
Posts: 1,357, Visits: 3,619
I built a component (inherited from Component), then I inherited from that class, added a property and a few other things, then inherited from that class. Looks something like this:

ConcreteClass -> Inherits MiddleClass -> Inherits BaseClass -> Inherits Component

The concrete class doesn't have a designer file, I just created a class and set the inheritance. When I set a property in the property window, it serializes the code to main file (the only file). I'd like it to serialize to a designer file. How do I get VS to do this? I tried just creating a designer file myself (with file name of ConcreteClass.Designer.vb) and in the same namespace and as a partial class....no joy. What's the trick to using designer files?

Post #18608
Posted 08/20/2008 8:31:17 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 2:01:30 PM
Posts: 372, Visits: 2,492
Hiya Greg,

I usually start by creating a component instead of a vanilla class and then add the inherits statement that way the designer file is already plumbed, however I think all you would need to do would be to move or create your init component in the partial class and then it should serialize the values there or create a component and just copy and paste what you have does so far.

Paul

Post #18612
Posted 08/20/2008 9:19:32 AM
StrataFrame Team Member

StrataFrame Team Member

Group: StrataFrame Users
Last Login: 12/23/2008 11:10:40 AM
Posts: 232, Visits: 511
Yep, I'd start with a component and work backwards.
Post #18624
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:17pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.062. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.