DOCUMENT:Q175971 03-NOV-1997 [vbwin] TITLE :PRB: Cannot Set Marker Size or Style for MSChart PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:5.0 OPER/SYS:WINDOWS KEYWORDS:vb5all vb5howto VBKBAX VBKBComp VBKBCtrl kb3rdparty ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 5.0 --------------------------------------------------------------------- SYMPTOMS ======== Setting the Size or Style properties of the marker object at run-time in the Microsoft Chart control does not result in size or style changes. STATUS ====== Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. Start a new Standard EXE project. Form1 is created by default. 2. Click Components on the Project menu, and then check "Microsoft Chart Control." 3. Add an MSChart control and a CommandButton to Form1. 4. Set the ChartType property of the MSChart control to 3- vtChChartType2dLine. 5. Add the following code to Form1: Private Sub Command1_Click() 'Change the Size and Style of the Marker for the First Series With MSChart1.Plot.SeriesCollection(1).DataPoints(-1).Marker .Style = VtMarkerStyleCircle .Size = 100 End With End Sub Private Sub Form_Load() 'Make the Marker for the First Series Visible MSChart1.Plot.SeriesCollection(1).DataPoints(-1).Marker.Visible = _ True End Sub 6. Press the F5 key to run the project. 7. Click Command1. Note that the Marker style and size does not change. The Microsoft Chart control is based on First Impressions by Visual Components. You can obtain a trial or full version of First Impressions at the following web site: - http://www.visualcomp.com/products/fi.htm First Impressions is manufactured by Visual Components, a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability. ====================================================================== Keywords : vb5all vb5howto VBKBAX VBKBComp VBKBCtrl kb3rdparty Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbprb ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1997.