holas, yo eso lo consegui hacer creando un nuevo componente que deriva de la clase panel y sobrescribiendo el metodo de la clase:
Código:
<System.Drawing.ToolboxBitmapAttribute(GetType(System.Windows.Forms.Panel))> _
Public Class Panel : Inherits System.Windows.Forms.Panel
Public Sub New()
MyBase.New()
Me.SetDefaultControlStyles()
End Sub
Private Sub SetDefaultControlStyles()
Me.SetStyle(System.Windows.Forms.ControlStyles.DoubleBuffer, True)
Me.SetStyle(System.Windows.Forms.ControlStyles.AllPaintingInWmPaint, False)
Me.SetStyle(System.Windows.Forms.ControlStyles.ResizeRedraw, True)
Me.SetStyle(System.Windows.Forms.ControlStyles.UserPaint, True)
Me.SetStyle(System.Windows.Forms.ControlStyles.SupportsTransparentBackColor, True)
End Sub
Protected Overrides Sub AdjustFormScrollbars(ByVal displayScrollbars As Boolean)
displayScrollbars = False
End Sub
End Class