Gantt Graphic in VB 6???

I want to make a Gantt's Graphic in Visual Basic 6, but the data will be given by the user on the execution of one form in my program, like an input in a text field, how i make this posible??, of course i want to display this graphic in another form. Please, describe me the process. Thanx.

piranha

piranhaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Erick37Commented:
In your graph form declare your graph data public:

'frmGraph
Public Data1 As Long
Public Data2 As Long

Private Sub Form_Load()
    'Use your data here to create graph
End Sub
'~~~~~~~~~~~~~~~~~~~~~~~~~~~

In your data entry form assign the graph data to the textbox entries:

'frmEntry
Private Sub Command1_Click()
    frmGraph.Data1 = Val(Text1.Text)
    frmGraph.Data2 = Val(Text2.Text)
    frmGraph.Show
End Sub
'~~~~~~~~~~~~~~~~~~~~~~~~~~
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Erick37Commented:
Alternatively, you could update the data dynamically using a function (method) in frmGraph:

'FrmGraph method
Public Sub UpdateGraph(Data1 As Long, Data2 As Long)
    'Update the graph with the new data values
End Sub

'frmEntry call
Private Sub Command1_Click()
    frmGraph.UpdateGraph Val(Text1.Text), Val(Text2.Text)
End Sub
0
piranhaAuthor Commented:
I want more details about how i use my data in my graph form to make a GANTT's graphic, please. look, my data will be given as hours expended in activities, for example:

How many hours do you need for
Activity 1: ______ <---Text Field
How many Hours do you need for
Activity 2: ______ <---Text Field

and with this i will make my Gantt's graphic, labeled in Y with the activities and labeled X with the hours,
ok, please, can you give me a more detailed explanation.

Thanx.
Piranha.
 
0
Erick37Commented:
Are you drawing the chart yourself or using MSChart control?
0
piranhaAuthor Commented:
I think that MSChart don't have features for Gantt's Graphic, but i don't know, With MSChart can i make this kind of graphic??, if the answer is afirmattive, how can i make my Gantt's graphic using the details in the comment above yours; thank you very much for your help.

Piranha.  
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.