Question ScrollBar UserControl

Geysser

Member
Joined
Apr 6, 2010
Messages
17
Programming Experience
5-10
Hi to all!
This is not a question per se but a request for advice.
I'm creating a simple scroll bar to use in a media player.It will serve as a control for the position of a playing media and for the volume (and God knows for what else might come up!). I want the user to be able to scroll the value by dragging with the mouse- just like with a normal scrollbar.
My question is this: which would be the best approach?
1)To encode the action in the code of the user control?
2)To leave an event - let's say MouseMove - to handle the whole thing from the code of the main window?
When I say "best approach" I mean in terms of efficiency and code controling.
Thank's in advance!
 
Back
Top