Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/09/2005, 04:26
Genu
 
Fecha de Ingreso: septiembre-2005
Mensajes: 1
Antigüedad: 19 años, 5 meses
Puntos: 0
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