Click here to Skip to main content
       

C#

 
GeneralRe: C# samples PinmemberNard you3-Feb-13 22:47 
AnswerRe: C# samples PinprofessionalAmir Mohammad Nasrollahi29-Jul-13 23:52 
Generaloops Pinmemberankul kumar from sharanpur3-Feb-13 18:37 
AnswerRe: oops PinmvpAbhinav S3-Feb-13 20:12 
QuestionWhy is my windows chart so small, I cant change the size Pinmemberraymond leadingham3-Feb-13 3:47 
AnswerRe: Why is my windows chart so small, I cant change the size PinmvpDave Kreskowiak3-Feb-13 6:06 
GeneralRe: Why is my windows chart so small, I cant change the size Pinmemberraymond leadingham3-Feb-13 6:30 
GeneralRe: Why is my windows chart so small, I cant change the size PinmvpDave Kreskowiak3-Feb-13 10:05 
The code isn't here, but you may have set the size of the ChartArea1 in the designer to be a fixed size instead of Auto.
 
I preffer to remove all of the default collection items that dropping the chart object on the form adds, including all Legends, ChartAreas, Series, Annotations, ... and just create everything in code and add them to the appropriate collectiosn manually instead of modifying what's there. I did this without any problems:
        Dim chartArea As New ChartArea("TestChartArea1")
        chartArea.AlignmentOrientation = AreaAlignmentOrientations.All
        chartArea.AlignmentStyle = AreaAlignmentStyles.All
        Chart1.ChartAreas.Add(chartArea)
 
        Dim legendArea As New Legend("TestLegend1")
        Chart1.Legends.Add(legendArea)
 
        Dim series As New Series("Series1")
        series.ChartArea = "TestChartArea1"
        series.ChartType = DataVisualization.Charting.SeriesChartType.Line
        series.XValueType = DataVisualization.Charting.ChartValueType.Int32
        series.YValueType = DataVisualization.Charting.ChartValueType.Int32
 
        For Each p In New Integer() {1, 2, 3, 4}
            series.Points.AddXY(p, p)
        Next
 
        Chart1.Series.Add(series)

QuestionHow to List Banks in a Country in web site Pinmemberakhil lal2-Feb-13 21:55 
AnswerRe: How to List Banks in a Country in web site PinmvpRichard MacCutchan2-Feb-13 22:28 
GeneralRe: How to List Banks in a Country in web site Pinmemberakhil lal2-Feb-13 22:50 
GeneralRe: How to List Banks in a Country in web site PinmvpRichard MacCutchan2-Feb-13 22:57 
GeneralRe: How to List Banks in a Country in web site Pinmemberakhil lal2-Feb-13 23:20 
GeneralRe: How to List Banks in a Country in web site PinprotectorPete O'Hanlon3-Feb-13 4:57 
GeneralRe: How to List Banks in a Country in web site Pinmemberakhil lal3-Feb-13 23:14 
AnswerRe: How to List Banks in a Country in web site PinmvpEddy Vluggen3-Feb-13 2:26 
AnswerRe: How to List Banks in a Country in web site Pinmemberjschell3-Feb-13 7:27 
AnswerRe: How to List Banks in a Country in web site PinmvpAbhinav S3-Feb-13 8:00 
QuestionHo to draw a regression line in windows forms charts? Pinmemberraymond leadingham2-Feb-13 10:00 
AnswerRe: Ho to draw a regression line in windows forms charts? PinmemberPeter_in_27802-Feb-13 11:08 
GeneralRe: Ho to draw a regression line in windows forms charts? Pinmemberraymond leadingham2-Feb-13 11:17 
GeneralRe: Ho to draw a regression line in windows forms charts? Pinmemberraymond leadingham2-Feb-13 12:36 
GeneralRe: Ho to draw a regression line in windows forms charts? PinmemberPeter_in_27802-Feb-13 15:52 
Questionusing iTextSharp and c# for page numbers PinmemberTom Paronis2-Feb-13 6:50 
AnswerRe: using iTextSharp and c# for page numbers PinmvpAbhinav S2-Feb-13 8:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.141223.1 | Last Updated 25 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid