i want to create a custom control that has multiple value properties. For example the Size property of any toolbox control, it takes two parameters a width and a height.
So how can i create a property of a control that will take two or more values as inputs to its Set method, or by any other method, and we can use them in a single property?
i want to create something similar to the Size property that it should take more than one arguments when i call the property of the custom control.
For example: if i create a custom control named "CustomComboBox" and then define a property named "addMovies"
now when i access this property in my code :
customComboBox.addMovies("value1", "value2", "value3")
By default if i create a property in my custom control it wold be something like this:
Private multipleMovies As String
Public Property AddMovies() As String
Get
Return multipleMovies
End Get
Set(ByVal value As String)
multipleMovies = value
End Set
End Property
So i want to change this property such that, it takes more than one value