Click here to Skip to main content
15,892,537 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using Invoke to Manipulate the UI Pin
Luc Pattyn19-Oct-11 1:53
sitebuilderLuc Pattyn19-Oct-11 1:53 
GeneralRe: Using Invoke to Manipulate the UI Pin
Reiss18-Oct-11 22:31
professionalReiss18-Oct-11 22:31 
GeneralRe: Using Invoke to Manipulate the UI Pin
Richard Andrew x6419-Oct-11 0:21
professionalRichard Andrew x6419-Oct-11 0:21 
QuestionValueMember and DisplayMember on DataGridViewComboBoxCell Pin
Dewald18-Oct-11 11:29
Dewald18-Oct-11 11:29 
AnswerRe: ValueMember and DisplayMember on DataGridViewComboBoxCell Pin
egypogramer1-Jan-12 3:05
egypogramer1-Jan-12 3:05 
QuestionOpen multiple pdfs in one window on web Pin
vanikanc18-Oct-11 11:01
vanikanc18-Oct-11 11:01 
AnswerRe: Open multiple pdfs in one window on web Pin
Dennis E White18-Oct-11 11:49
professionalDennis E White18-Oct-11 11:49 
QuestionTab control with pages that are the same. Pin
__John_18-Oct-11 3:14
__John_18-Oct-11 3:14 
Hi,

I have a MFC app that I am porting to C#.NET.

The main window is a property sheet with three pages.
All three pages look almost exactly the same, the functionality is also 90% the same.

In MFC it was easy, I have an abstract base class (CBasePage) that inherits CPropertyPage, I then have three specialised classes (one for each page) that inherit CBasePage. Then I just create an instance of each specialised page and add them to the CPropertySheet.

Doing it this way, all the common stuff is in one place and I dont duplicate anything.

The problem is that with the CLR TabControl all the controls on the tabs are owned by the parent Form. I cant see any way of avoiding duplication of controls and functionality three times over.

Is there a nice OO way of doing this in C#.NET ?
Or, even a not so nice way ?

Thanks.
AnswerRe: Tab control with pages that are the same. Pin
PIEBALDconsult18-Oct-11 3:26
mvePIEBALDconsult18-Oct-11 3:26 
GeneralRe: Tab control with pages that are the same. Pin
BobJanova18-Oct-11 5:09
BobJanova18-Oct-11 5:09 
GeneralRe: Tab control with pages that are the same. Pin
PIEBALDconsult18-Oct-11 8:01
mvePIEBALDconsult18-Oct-11 8:01 
GeneralRe: Tab control with pages that are the same. Pin
BobJanova18-Oct-11 22:33
BobJanova18-Oct-11 22:33 
AnswerRe: Tab control with pages that are the same. Pin
Wayne Gaylard18-Oct-11 3:31
professionalWayne Gaylard18-Oct-11 3:31 
GeneralRe: Tab control with pages that are the same. Pin
__John_18-Oct-11 4:18
__John_18-Oct-11 4:18 
AnswerRe: Tab control with pages that are the same. Pin
BillWoodruff19-Oct-11 23:05
professionalBillWoodruff19-Oct-11 23:05 
QuestionWhich IP Address Represents LocalHost Pin
Richard Andrew x6417-Oct-11 20:32
professionalRichard Andrew x6417-Oct-11 20:32 
AnswerRe: Which IP Address Represents LocalHost [SOLVED] Pin
Richard Andrew x6417-Oct-11 20:45
professionalRichard Andrew x6417-Oct-11 20:45 
GeneralRe: Which IP Address Represents LocalHost [SOLVED] Pin
Richard MacCutchan17-Oct-11 23:18
mveRichard MacCutchan17-Oct-11 23:18 
AnswerRe: Which IP Address Represents LocalHost Pin
Abhinav S18-Oct-11 3:29
Abhinav S18-Oct-11 3:29 
GeneralRe: Which IP Address Represents LocalHost Pin
Dave Kreskowiak18-Oct-11 4:10
mveDave Kreskowiak18-Oct-11 4:10 
GeneralRe: Which IP Address Represents LocalHost Pin
jschell18-Oct-11 8:28
jschell18-Oct-11 8:28 
GeneralRe: Which IP Address Represents LocalHost Pin
Alisaunder18-Oct-11 8:58
Alisaunder18-Oct-11 8:58 
AnswerRe: Which IP Address Represents LocalHost Pin
jschell18-Oct-11 8:39
jschell18-Oct-11 8:39 
GeneralRe: Which IP Address Represents LocalHost Pin
Richard Andrew x6418-Oct-11 9:08
professionalRichard Andrew x6418-Oct-11 9:08 
AnswerRe: Which IP Address Represents LocalHost Pin
yoolo19-Oct-11 6:03
yoolo19-Oct-11 6:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.