Re: ParentControlDesigner



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

.



Relevant Pages

  • RE: problem with serializer constructor
    ... Mark, I have same problem as yours. ... Looks like it is unable to create permission set. ... > Imports System.Xml ... > Public Class PurchaseOrder ...
    (microsoft.public.dotnet.xml)
  • Re: DataGrid-Inhalt in ein Picture wandeln?
    ... Imports System.Data ... Public Class Handler: Implements IHttpHandler ... Public Sub ProcessRequestImplements IHttpHandler.ProcessRequest ... Dim fnt As New Font(System.Drawing.FontFamily.GenericSansSerif, 12, ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Re: UserControl and containing controls problem...
    ... Imports System.ComponentModel.Design ... Public Class MyTabControl ... Inherits CollectionEditor ... > a usercontrol of type "A" who can hold lots of usercontrols of type "B". ...
    (microsoft.public.dotnet.languages.vb)
  • Re: UserControl and containing controls problem...
    ... Imports System.ComponentModel.Design ... Public Class MyTabControl ... Inherits CollectionEditor ... > a usercontrol of type "A" who can hold lots of usercontrols of type "B". ...
    (microsoft.public.dotnet.framework)
  • Re: ArrayList Sorting in VB.NET - How to use ICompare
    ... >> Implements IComparable, IComparer ... >> Imports System.Collections ... >> Public Class SamplesArrayList ... >> Public Shared Sub PrintIndexAndValues ...
    (microsoft.public.dotnet.framework.aspnet)

Loading