P
Pascal
Hello
How to set the minimum size, the dock comportement of a usercontrol herited
from a label ?
i tried this without success :
Imports System.ComponentModel
<ToolboxBitmap(GetType(MyLblCtrl.MonLabel), "MonLabel.bmp")> _
Public Class MonLabel
Inherits Windows.Forms.Label
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Me.AllowDrop = True
Me.BorderStyle = Windows.Forms.BorderStyle.FixedSingle
Me.MinimumSize.Width = 80 'error here
Me.Dock = DockStyle.Fill
Me.Height = 25
End Sub
http://www.scalpa.info
http://scalpa98.blogspot.com/
How to set the minimum size, the dock comportement of a usercontrol herited
from a label ?
i tried this without success :
Imports System.ComponentModel
<ToolboxBitmap(GetType(MyLblCtrl.MonLabel), "MonLabel.bmp")> _
Public Class MonLabel
Inherits Windows.Forms.Label
Public Sub New()
' This call is required by the Windows Form Designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Me.AllowDrop = True
Me.BorderStyle = Windows.Forms.BorderStyle.FixedSingle
Me.MinimumSize.Width = 80 'error here
Me.Dock = DockStyle.Fill
Me.Height = 25
End Sub
http://www.scalpa.info
http://scalpa98.blogspot.com/