Dear Friends
I am creating an user control. In this control i need to set a property, that propery should hold 2 values. That two values should come in the cambo box. for example in a command button there is a style property. That property hold two values.Like that in my property should display. How to do that?
[Edited by vbgen on 19-10-2003 at 03:36 AM GMT]
17-10-2003 at 10:50 AM
|
Goran Level: Moderator Registered: 16-05-2002 Posts: 1681
Re: User Control
Option Explicit
Enum eShape
Rounded
Square
End Enum
Dim m_Shape As eShape
Public Property Get ControlShape() As eShape
ControlShape = m_Shape
End Property
Public Property Let ControlShape(mShape As eShape)
m_Shape = mShape
End Property
Hope this helps.
____________________________
If you find the answer helpful, please mark this topic as solved.
I am creating an User control. In this I want to set a property.
That property should contain more than one value. For example in a borderstyle property of textbox is 0-None and 1-Fixed simple. Like that my property value should display in a cambo box. How to do that please help me
By
Chris
[Edited by vbgen on 20-10-2003 at 02:39 AM GMT]
19-10-2003 at 06:31 PM
|
Goran Level: Moderator Registered: 16-05-2002 Posts: 1681
Re: Creating A User Control
Code above doesnt help?
____________________________
If you find the answer helpful, please mark this topic as solved.
19-10-2003 at 06:52 PM
|
vbgen Level: Moderator Registered: 10-10-2002 Posts: 876
Re: Creating A User Control
Goran, he thought the post he made vanished, so he posted again... i already sent him a PM, but i dunno what happened..
____________________________
Been busy trying to take a second degree <--it's not working out...
20-10-2003 at 11:04 AM
|
Goran Level: Moderator Registered: 16-05-2002 Posts: 1681
Re: Creating A User Control
VBGen
____________________________
If you find the answer helpful, please mark this topic as solved.
Thank you very much for your coding. It works fine. Actually I have posted in general section in my question.But it has transfered into Activex Section. I got confused and posted my question again.