473,466 Members | 1,314 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

MFC => C# Problem, Dynamic Views

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
1 2141
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jegger | last post by:
Hello! We have following situation; network with 100 users, aplication developed in Access, user DB deployed on SQL Server. Is it better to create query inside aplication (with code) and then...
4
by: MD | last post by:
I am trying to create a dynamic SQL statement to create a view. I have a stored procedure, which based on the parameters passed calls different stored procedures. Each of this sub stored procedure...
2
by: franklini | last post by:
hello people i. can anybody help me, i dont know what is wrong with this class. it has something to do with the me trying to override the input output stream. if i dont override it, it works fine....
4
by: Patrik | last post by:
Hi, I need help on this one. For the past two days, whenever I make a modification to a stored procedure using enterprise manager (Apply), the stored procedure stops working. If I copy it...
3
by: KemperR | last post by:
Hello Experts outhere, may be someone can tell me whats going wrong with my ADOX trial. I have an Access 2002 database with some tables and queries (views) The code listed below works well up...
0
by: Paul Say | last post by:
Problem: I have a custom class called Job and a custom collection called JobsCollection. I currently display the collection on a web page via a datagrid, and I have a dropdown list that...
3
by: sferriol | last post by:
hello is it possible with postgres 7.2 or more, to define a dynamic view. For example, i have a table with a column 'user' and i want to define a view which gives infomrations from different...
0
by: eric.olstad | last post by:
I want to create a web site that can dynamically creates tabs -- like firefox functionality built into a web site. Take a look at this site to get an idea of what I'm looking to do:...
7
by: Yas | last post by:
Hi, is there a way I can check if a table is empty and contains no rows? I have a Table1 which being dynamic can sometimes end up with now columns what so ever. I'm using Table1 in one of my...
2
Frinavale
by: Frinavale | last post by:
I've created a ASP.NET control that displays a "book" of schedules. It dynamically displays scheduling times and allows the user to page through the schedules. It also lets the user edit the...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.