By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,334 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,334 IT Pros & Developers. It's quick & easy.

MFC => C# Problem, Dynamic Views

P: n/a
Hi,

I'm migrating a program to C# that I wrote using MFC. The
programs GUI was split vertically in two halfs with a
tree control to the left. Accordingly to the different
items that could be selected in this tree view, the right
side of the GUI showed different Formviews that was
replaced dynamically at runtime.
I would like to do the same thing in my C# version of the
program. However I cant figure out which controls could
do the job for me.

Please heeelp!
Jesper, Denmark.
Nov 13 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Jesper,

Well, you would probably want to start with the UserControl class as a
base, as it can host other controls and you will want to derive your own
custom controls from this class. Then, when the item in the tree view is
changed, you will want to dynamically add/remove the control on the
right-hand side using the Add and Remove methods on the Controls property
exposed by whatever Control you place on the right hand side.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"Jesper Odgaard" <je****@hotmail.com> wrote in message
news:7c****************************@phx.gbl...
Hi,

I'm migrating a program to C# that I wrote using MFC. The
programs GUI was split vertically in two halfs with a
tree control to the left. Accordingly to the different
items that could be selected in this tree view, the right
side of the GUI showed different Formviews that was
replaced dynamically at runtime.
I would like to do the same thing in my C# version of the
program. However I cant figure out which controls could
do the job for me.

Please heeelp!
Jesper, Denmark.

Nov 13 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.