0

Can anyone please tell how to combine two controls, not necessary charting controls, at one? What I need to do? Maybe there is a book or example?

I'm using System.DataVisualization.Charting controls. Thanks.

abatishchev
  • 98,240
  • 88
  • 296
  • 433
lexeme
  • 2,915
  • 10
  • 60
  • 125
  • 1
    What do you mean combine two controls into one? Do you want to always have the same two side by side? Or do you want two types of charts in the same charting space? – Tim May 17 '11 at 15:16
  • The second one. Got any practicalsuggestions? – lexeme May 17 '11 at 16:04

1 Answers1

1

The concept of combining controls is really about aggregating functionality.

The functionality which may span multiple controls can be aggregated in two ways; either via a UserControl which simply encapsulates the controls as they exist in their original form or creating a custom control which will provide the functionality from the varying controls which you are after.

The differences between a UserControl and custom control are subtle on the surface but significant underneath the covers. Depending on your technology; WinForms, WPF, etc... there are samples online on for creating a UserControl.

Aaron McIver
  • 24,527
  • 5
  • 59
  • 88