G
Guest
I have added a ProgressBar control to StatusBar control and created a custom
property as below, to show the properties of the ProgressBar in Property
Window of StatusBar.
<Browsable(True)> _
Public Property ProgressBar() As ProgressBar
Get
Return ProgressBar1
End Get
Set(ByVal Value As ProgressBar)
ProgressBar1 = Value
End Set
End Property
This does shows the ProgressBar property in the Property Window of StatusBar
control with a expander node a + sign. When I click the node it drills down
the properties of ProgressBar. But there is a problem, this gives a drop down
box as well next to the ProgressBar property where user can assign another
ProgressBar control to it.
I don’t want this. All I want it to show just the properties of ProgressBar
control which is already added to the StatusBar control with a Heading
“ProgressBar†properties.
property as below, to show the properties of the ProgressBar in Property
Window of StatusBar.
<Browsable(True)> _
Public Property ProgressBar() As ProgressBar
Get
Return ProgressBar1
End Get
Set(ByVal Value As ProgressBar)
ProgressBar1 = Value
End Set
End Property
This does shows the ProgressBar property in the Property Window of StatusBar
control with a expander node a + sign. When I click the node it drills down
the properties of ProgressBar. But there is a problem, this gives a drop down
box as well next to the ProgressBar property where user can assign another
ProgressBar control to it.
I don’t want this. All I want it to show just the properties of ProgressBar
control which is already added to the StatusBar control with a Heading
“ProgressBar†properties.