Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# samples Pin
Nard you3-Feb-13 21:47
Nard you3-Feb-13 21:47 
AnswerRe: C# samples Pin
Amir Mohammad Nasrollahi29-Jul-13 22:52
professionalAmir Mohammad Nasrollahi29-Jul-13 22:52 
Generaloops Pin
ankul kumar from sharanpur3-Feb-13 17:37
ankul kumar from sharanpur3-Feb-13 17:37 
AnswerRe: oops Pin
Abhinav S3-Feb-13 19:12
Abhinav S3-Feb-13 19:12 
QuestionWhy is my windows chart so small, I cant change the size Pin
raymond leadingham3-Feb-13 2:47
raymond leadingham3-Feb-13 2:47 
AnswerRe: Why is my windows chart so small, I cant change the size Pin
Dave Kreskowiak3-Feb-13 5:06
mveDave Kreskowiak3-Feb-13 5:06 
GeneralRe: Why is my windows chart so small, I cant change the size Pin
raymond leadingham3-Feb-13 5:30
raymond leadingham3-Feb-13 5:30 
GeneralRe: Why is my windows chart so small, I cant change the size Pin
Dave Kreskowiak3-Feb-13 9:05
mveDave Kreskowiak3-Feb-13 9: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 Pin
akhil lal2-Feb-13 20:55
akhil lal2-Feb-13 20:55 
AnswerRe: How to List Banks in a Country in web site Pin
Richard MacCutchan2-Feb-13 21:28
mveRichard MacCutchan2-Feb-13 21:28 
GeneralRe: How to List Banks in a Country in web site Pin
akhil lal2-Feb-13 21:50
akhil lal2-Feb-13 21:50 
GeneralRe: How to List Banks in a Country in web site Pin
Richard MacCutchan2-Feb-13 21:57
mveRichard MacCutchan2-Feb-13 21:57 
GeneralRe: How to List Banks in a Country in web site Pin
akhil lal2-Feb-13 22:20
akhil lal2-Feb-13 22:20 
GeneralRe: How to List Banks in a Country in web site Pin
Pete O'Hanlon3-Feb-13 3:57
mvePete O'Hanlon3-Feb-13 3:57 
GeneralRe: How to List Banks in a Country in web site Pin
akhil lal3-Feb-13 22:14
akhil lal3-Feb-13 22:14 
AnswerRe: How to List Banks in a Country in web site Pin
Eddy Vluggen3-Feb-13 1:26
professionalEddy Vluggen3-Feb-13 1:26 
AnswerRe: How to List Banks in a Country in web site Pin
jschell3-Feb-13 6:27
jschell3-Feb-13 6:27 
AnswerRe: How to List Banks in a Country in web site Pin
Abhinav S3-Feb-13 7:00
Abhinav S3-Feb-13 7:00 
QuestionHo to draw a regression line in windows forms charts? Pin
raymond leadingham2-Feb-13 9:00
raymond leadingham2-Feb-13 9:00 
AnswerRe: Ho to draw a regression line in windows forms charts? Pin
Peter_in_27802-Feb-13 10:08
professionalPeter_in_27802-Feb-13 10:08 
GeneralRe: Ho to draw a regression line in windows forms charts? Pin
raymond leadingham2-Feb-13 10:17
raymond leadingham2-Feb-13 10:17 
GeneralRe: Ho to draw a regression line in windows forms charts? Pin
raymond leadingham2-Feb-13 11:36
raymond leadingham2-Feb-13 11:36 
GeneralRe: Ho to draw a regression line in windows forms charts? Pin
Peter_in_27802-Feb-13 14:52
professionalPeter_in_27802-Feb-13 14:52 
Questionusing iTextSharp and c# for page numbers Pin
Tom Paronis2-Feb-13 5:50
Tom Paronis2-Feb-13 5:50 
AnswerRe: using iTextSharp and c# for page numbers Pin
Abhinav S2-Feb-13 7:05
Abhinav S2-Feb-13 7:05 

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

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