Switch between pan and select

Is there an easy way to switch between the pan tool and the dragselect tool? What I am looking for is to be able to click a pan icon and go in pan mode and then click a select icon and go in select mode.

Yes, just toggle Diagram.DragSelectingTool.MouseEnabled.

Thanks, it worked