Community discussion forum

Building a gantt chart component. Custom Controls!

  • 2 years ago

    Hello everyone!

    I am interested in building a gantt chart component in vb .net. I've been around and saw alot of third-party components that are really good but the problem is I dont want to buy them but instead I would want to build one myself. It wouldn't have to be as great, just a basic one will do.

    Given that there is many third party components out there, im conviced that it can be done! So in order to go ahead and build one, I assume i'll have to build a custom control, acquire knowledge in GDI+ and inherit and manipulate the datagrid component?

    In my opinion, the Gantt Chart component should have the elements of rows and columns; rows so that bars can be in placed accordingly, the bars will be representing the duration for each task and the columns to represent a timeframe. The bars may consist of lines that will connect these bars with one and another to represent dependencies. Thus suggesting a line to be drawn thru GDI+ i suppose?

    So with the basics of what im trying to create here, im pretty much clueless on how I'm going to go ahead and build one as I  never build a custom control before.



    I really want some suggestions on this...is there another way of building a Gantt Chart? Or am I heading off the wrong direction? Or have I got it all just plain wrong. =(

    Hope someone can assist me! Thanks in advance! 

    Jensen

    Here are some links to those third party components I was refering to;
    http://dlhsoft.com/DeveloperTools/ProjectDataControlLibrary/Samples.aspx
    http://www.ilog.com/products/ganttnet/
    http://www.howtoselectguides.com/dotnet/charting/


  • 2 years ago

    I have a simple line chart that's written using C# - happy to share it with you if you can live with it being C#.

    Otherwise, there are a few examples here:

    http://www.codeproject.com/vb/net/DrawBarChart.asp

    HTH

  • 2 years ago

    Hello Camurphy!, do you forsee any complications if I were to look at the concepts and try port it over to VB .net?

    I would mind having a look at your concepts done in C# and gladly respond back with my findings or development progress with the crossover to vb .net

    Also thanks for the site link! Will get on started working on with the concepts. Oh also when looking at the example here at http://www.codeproject.com/vb/net/DrawBarChart.asp, yes using the graphics object one could draw the shapes but what if I would want to also give some properties to those shapes such in a way where I will be able to drag those shapes, click on em and etc.

    Thanks again! Hope to recieve more feedbacks! Cheers!

    Jensen Lee

Post a reply

Enter your message below

Sign in or Join us (it's free).

Want to stay in touch with what's going on? Follow us on twitter!