locked
Position Chartcontrol title? RRS feed

  • Question

  • Hallo,

    I have a chart control and i want to know how to position the chart title programmatically ?  I know in windows designer in titles collection I can do it manually but i want to position it programmatically.

    Thanks

    Saturday, October 31, 2020 10:30 AM

Answers

  • Sorry.

    here is my working code

    With Chart1.Titles.Add("Sample Chart")
         .Font = New Font("Calibri", 12, FontStyle.Bold)
         .Position.X = 50
         .Position.Y = 10
    End With

    regards

    • Proposed as answer by leshay Saturday, October 31, 2020 3:03 PM
    • Marked as answer by Shan1986 Saturday, October 31, 2020 7:46 PM
    Saturday, October 31, 2020 3:01 PM

All replies

  • found it. thanks
    Saturday, October 31, 2020 10:42 AM
  • found it. thanks

    Hi

    Glad you found it, but, anyone else with a similar request thinking they have found an answer will ne disappointed when reading your reply.  Wht don't you post the answer for other readers?


    Regards Les, Livingston, Scotland

    Saturday, October 31, 2020 12:57 PM
  • Sorry.

    here is my working code

    With Chart1.Titles.Add("Sample Chart")
         .Font = New Font("Calibri", 12, FontStyle.Bold)
         .Position.X = 50
         .Position.Y = 10
    End With

    regards

    • Proposed as answer by leshay Saturday, October 31, 2020 3:03 PM
    • Marked as answer by Shan1986 Saturday, October 31, 2020 7:46 PM
    Saturday, October 31, 2020 3:01 PM