CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Posts
    91

    How to create MSCHART on running time ?

    Hi, everyone :
    I want create MSCHART on running time , so I program
    like this :


    Dim MyChart1 as MSChart

    private Sub Form_Load()
    ...

    set MyChart1 = Controls.Add("MSChart20Lib.VtChChartType2dLine", "Chart1")
    ...






    But the compilier tell me the " Invalid class string "
    Can you help me ?

    Thanks .




  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: How to create MSCHART on running time ?


    private Sub Form_Load()
    Dim MyChart1 as MSChart
    set MyChart1 = Controls.Add("MSChart20Lib.MsChart", "Chart1")
    End Sub



    In addition, on the MAKE tab of project properties, Uncheck the Remove information about unused activeX controls

    John G

  3. #3
    Join Date
    Dec 1999
    Posts
    91

    Re: How to create MSCHART on running time ?

    Thank you ,John G .




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured