473,473 Members | 2,215 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

View the object model

153 New Member
Hi,
I have seen in books representing the class hierarchy using diagrams as in VS class disigner.
I want to know how can i view the class hierarchy (uml diagrams) using VS 2005.
That's for learning purposes.
for example see THIS link.

For example I want to know the entire hierarchy od the class DataSet, how would i do that ?
Sep 17 '08 #1
4 1909
mldisibio
190 Recognized Expert New Member
In Visual Studio:
Navigate to the Class View Window.
Open the node for your project or solution.
If you want to see Framework classes, then open the Project References node.
Right click on either a class or a namespace and choose "View Class Diagram"
Note: Child classes do not automatically pull their parent hierachy into the diagram. To get a complete picture, you may need to diagram an entire namespace. This can take up serious machine resources for large namespaces, and also brings in more detail then you may want. Or you can simply manually add the parent classes to the diagram by following the Framework documentation.
Sep 17 '08 #2
vekipeki
229 Recognized Expert New Member
It's called Class diagram, you can add it to your project in the same way you're adding any other new item, right click in Solution explorer, Add new item.
Sep 17 '08 #3
akshaycjoshi
153 New Member
Thnaks i can see the classs diagram now :)
But the problem is that when i view the class diagram of an entire assembly, it shows only the classes and not the relation between them.

Se the link i gave in my first post.
I want it that way(it's not the backstreet boys song).
Sep 17 '08 #4
mldisibio
190 Recognized Expert New Member
You can right-click on a class and choose "Show Base Classes" or "Show Derived Classes."

The VS Class Diagram will not show composite relationships ("has-a"). It will show implementation relationships ("is-a"). The sample diagram you point to may have had the relationships drawn in afterwards, or may be generated from a different tool.

Are you diagramming a Framework assembly? If so,which one? You would be surprised how shallow many Framwork classes are. Many only implement interfaces and do not have deep class hierarchies.

Plop the ToolStripItem, ToolStripDropDownItem and ToolStripMenuItem classes from the System.Windows.Forms assembly onto the Class Diagram surface and see if the relationships show up.
Sep 17 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Fritz Bosch | last post by:
We are in the process of refactoring our GUI-based test application for radio equipment and are rewriting a significant part in Python. The new architecture will substantially be based on the...
5
by: ScottyBaby | last post by:
Hi, I've run into a curious problem with MS SQL Server 8.0. Using sp_help and SQL Query Analyzer's object browser to view the columns returned by a view, I find that sp_help is reporting stale...
0
by: AMDIRT | last post by:
I have a few questions about IssueVision (from WindowsForms) concerning its scalability and performance. Rather, if I were to implement techniques described here into another application, how...
7
by: hugo.elias | last post by:
Hi all, I hope nobody minds me posting this question to this group, but I couldn't find any group closer to the Subject. Can anyone clear up where you draw the lines when dividing up an...
6
by: Robert W. | last post by:
I'm building my first major C# program and am try to use best practices everywhere. So I've implemented the "Document/View Model" whereby: - There's a Windows Form, which we'll call "formView" -...
4
by: Griff | last post by:
Two questions really, the first one "conceptual" and the other more involved with design: 1 - There are two schools of thought where I work on the role of the "controller" task. The first is...
6
by: Radium | last post by:
I have the following problem: I have written a class which works on image data. To be precise.... the class applies smoothening on the image with filters. I want to visualize this proccess....
10
by: Sean Chambers | last post by:
Hello, I am attempting to utilize the MVP pattern in a new app I am building. I am using TDD, along with mock views attached to the View interface to attempt to unit test the UI. The problem I...
12
by: Doug | last post by:
Hi, I learned a little about the model view presenter pattern at a conference this last week and am experimenting with it. It's working pretty well but I have a question. I am trying to use...
6
by: Bill44077 | last post by:
Hi, I am new to the MVP pattern and one of the main reasons that we are going this route is because we are doing Scrum with 30 day sprints - so we have a continually morphing design. We are...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
1
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: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.