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
Cristiano Radicchi
NA
1
818
Using the same Tab Page in two different Forms
Oct 31 2014 9:22 AM
Hello,
I'm working on a project (VS2010 + C#) where I have two forms (and classes), named "Subjects" and "Contacts" that use the same group of controls to define part of the attributes that are in common between them, such as, for example, the "Addresses" information.
By the way, "Addresses" is a separate class that in the underlying DB can be referenced either to the "Subjects" or to the "Contacts" tables.
I would like to add a Tab Page in both of the forms to let the user insert the address data but without duplicating the tab controls as well as their related code.
In fact, I could easily design the controls and write all the code needed to handle both controls data and behavior in the first Form and then copy all the stuff in the second Form.
Is there a more efficient way to do it ? In other words, by doing the work only once designing a dedicated control (a third form ?) and "including" (or calling / loading) it in the Tab Pages of both the forms ?
Thank you in advance for your answers.
Reply
Answers (
0
)
Regular Expression Imp
Text box text update