Nevron Forum

Apply VistaPlus pallet to custom UserControl

https://www.nevron.com/Forum/Topic7982.aspx

By Christopher Campo - Friday, July 19, 2013

Hello,

I'm using the latest version of Nevron UI for WinForms.

I have created a custom UserControl (using the UserControl Windows Forms template in Visual Studio), and I would like to apply the VistaPlus pallet to this control. The reason for this is because my main program uses the VistaPlus pallet for all forms, and this custom UserControl has scrollbars (autoscroll). I would like my UserControl's scrollbars to match the other scrollbars across main application, and therefore they need to use the VistaPlus skin/pallet.

Thanks!
- Chris
By Nevron Support - Friday, July 19, 2013

Hello Chris,

The easiest way is to put a Docked.Fill NUIPanel as a container control in your custom control and set AutoScroll to true.