คำตอบ วิธี copy chart (General question)

  • 16 มกราคม 2555 6:28
    ผู้ดูแล
     
     

    มี chart ใน panel

    อยากจะทำ copy chart ไปยังอีก panel หนึ่ง

    ในขณะที่ panel อันแรก ก็ยังมี chart อยู่


    Supa Sethasiripong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • ย้ายโดย supa_sModerator 16 มกราคม 2555 6:28 (จาก:Visual Studio)
    •  

ตอบทั้งหมด

  • 16 มกราคม 2555 6:28
    ผู้ดูแล
     
     คำตอบ
      public Chart GetCopyOfChart(Chart Original)
            {
                MemoryStream stream = new MemoryStream();
                Original.Serializer.Save(stream);
                Chart newChart = new Chart();
                newChart.Serializer.Load(stream);

                return newChart;
            }
    Supa Sethasiripong [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • ทำเครื่องหมายเป็นคำตอบโดย supa_sModerator 17 มกราคม 2555 1:50
    •