473,320 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Draw Shape at Runtime

Hi ,
I have requirement to display some objects(represented by some shape) in hierarchical manner connected by line(both Solid & Dotted ).
E.g. Say We have University class ,College Class,Department Class,Professor Class(prof can be associated with more than one department).
Requirement is to show them as ..

University_____College1 ----Dept----ProfA
| | |
| |_____ProfB
|
|______Dept1

My Application is window based(.NET 3.5)

Please suggest me,how to proceed .

Regards,
Gyanendar
Apr 8 '10 #1
1 1796
tlhintoq
3,525 Expert 2GB
Well - you could start by picking a programming language. Personally I like C#.

You seem to be describing a TreeView. Will a standard TreeView work for your needs?

If not, you could make a custom class that draws in a fancy manner. Since a TreeNode can take an object into it's .Tag property I would think you could use that to your advantage. Use a TreeView to keep track of your hierarchy (doesn't mean you have to show it, just use it for tracking). Then use the object in a given node's Tag to do the custom drawing.
Apr 8 '10 #2

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

Similar topics

5
by: Rose Alit,mon mignon | last post by:
Hi, I'm trying the following and doesn't work. Could someone have any clue? dim arrMyShapes(1 to MxA,1 to MxB) of New Shape Thanks JeanM
0
by: maidoo | last post by:
here is the situation im developing an asp.net application using vb.net through vs2003 i want to draw a shape of connected circles upon a database retreival result. or i want to draw a circle when...
2
by: Starlite | last post by:
I am using Microsoft visual c++ 6, and I want to draw a shape (say a rectangle) on a view. The code that I have used is below, but this draws a solid -filled rectangle, what I want is a displayed...
1
by: Michael Rodriguez | last post by:
In Delphi there was a control called a Bevel. It would let you draw straight lines, top, left, right, or bottom, anywhere on your screen. What is the equivalent in C#? How can I draw a straight...
3
by: Steve | last post by:
Hi All, I am sure this is a simple question, but how do I draw a line onto a windows form in VB.NET, or any shape for that matter. VB6 had a line and shape control that you could use. ...
3
by: Colin McGuire | last post by:
Hi there. I have written a small procedure to draw various shapes on things. A bit of it is shown below. Private Sub drawShape(ByVal shapeType As Integer, ByRef g As Graphics) Select Case...
1
by: Rob Richardson | last post by:
Greetings! I am creating a form that will contain information that will eventually be on a label. The label has a 2-column table with lines separating the cells. I want my form to resemble the...
0
by: Carl Gilbert | last post by:
Hi I am trying to draw a pie like shape on a form in the paint event. I am then trying to draw a line running down the center of the pie. The code I have attached at the bottom of this post...
3
by: VB Programmer | last post by:
VB.NET 2005 WinForm App: How do I draw a black box or another shape on the form I'm designing? I want to do it manually, not thru code. Is there a way or a 3rd party add-on?
0
by: daves | last post by:
How to draw a shape from one panel to an other in GDI+?? I want to draw a curve, where the beginning point is in the form and the end point is in a panel. By default the curve is drawn below the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.