Re: ParentControlDesigner
- From: a_pess <omar2592001@xxxxxxxxx>
- Date: Tue, 19 Aug 2008 13:40:05 -0700 (PDT)
On Aug 19, 11:32 pm, a_pess <omar2592...@xxxxxxxxx> wrote:
How to Overrides MouseDragtool and please provide an example if
possible
also give more details and expalination of this property
regards
to give more explaination, i,am trying to overrides this property the
code provided below will give you an idea, but i get nothing did i
miss something
i think i do can not able to figure why this property is there MSDN
documentation is nort enough to explain why this property is exist
Also most of the example i saw only Return Nothing for This Property
Imports System.ComponentModel
Imports System.ComponentModel.Design
Imports System.Drawing.Design
Imports System.Windows.Forms.Design
Imports System.Security.Permissions
Imports System.Runtime.Serialization
<Designer(GetType(MyDesigner))> _
Public Class MyControl
Inherits ContainerControl
Implements IArab
' Insert code here.
Public Property myProperty() As System.Drawing.Color Implements
IArab.myProperty
Get
End Get
Set(ByVal value As System.Drawing.Color)
End Set
End Property
End Class 'MyForm
Public Interface IArab
Property myProperty() As Color
End Interface
Public Class MyDesigner
Inherits ParentControlDesigner
'^ ^
Private m_tbI As MyToolboxItem
Protected Overloads ReadOnly Property MouseDragTool() As
ToolboxItem
Get
m_tbI = New MyToolboxItem()
Return m_tbI
End Get
End Property
End Class
<PermissionSetAttribute(SecurityAction.Demand, Name:="FullTrust")> _
Public Class MyToolboxItem
Inherits ToolboxItem
Private m_Bmp As Bitmap = My.Resources.HeaderIcon
Public Sub New()
With Me
MyBase.Initialize(GetType(MyControl))
.DisplayName = "My Control"
.Bitmap = m_Bmp
End With
End Sub
End Class
regards
.
- References:
- ParentControlDesigner
- From: a_pess
- ParentControlDesigner
- Prev by Date: ParentControlDesigner
- Next by Date: RE: File and Folder ListView Control
- Previous by thread: ParentControlDesigner
- Next by thread: RE: File and Folder ListView Control
- Index(es):
Relevant Pages
|
Loading