TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
blabla
NA
1
0
Designer Serializes dynamic created Controls
May 5 2008 5:15 PM
Hi, my Situation is the following: I have a conncectionManger class, that manages various Database Connections. I am also working with a Ribbon UI, however the same concept would apply to Containers. I am creating now a front end for this Connection Manager. The idea is to have a Component, lets call it cmComponent that has a property of type RibbonGroup, where it takes a ribbon group to wich it adds all the controls that are needed to manage the connections. The problem is now that these Controls are added to the group at runtime and the Designer creates member vars and property assignments for these dynamically created Controls, also it shouldnt. The Controls are private members of the class and i tried marking them with the DesignerSerializationVisibility.Hidden Attribute. I had the impression it worked once but i never got it running again. So what is the way to prevent the designer from serializing dynmaic created Controls?
Reply
Answers (
0
)
Context Menu, event handlers for different item click
C# Windows App - "Global" shared variable