I am trying to create a tracklist with custom graphics for a large slider. I started with the following code:
namespace testapp { partial class MyTrackBar : System.Windows.Forms.TrackBar { public MyTrackBar() { InitializeComponent(); } protected override void OnPaint(System.Windows.Forms.PaintEventArgs e) {
But he never calls OnPaint. Anyone else come across this? I used this technique before to create an ownerdraw button, but for some reason it doesn't work with TrackBar.
PS. Yes, I saw Question # 625728 , but the solution was to completely redo the control from scratch. I just want to slightly modify an existing control.
source share