borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Combo Box in Word (activex))Next Topic (Custom Control Error: \'Not a Valid interface or implements\') New Topic New Poll Post Reply
AndreaVB Forum : ActiveX : Creating A User Control
Poster Message
Chris_871
Level: Master


Registered: 30-11-2002
Posts: 106

icon Creating A User Control

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
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon 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.

17-10-2003 at 06:56 PM
View Profile Send Email to User Show All Posts | Quote Reply
Chris_871
Level: Master


Registered: 30-11-2002
Posts: 106
icon Setting A Property in a User Control

Dear Friends

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
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Creating A User Control

VBGen  


____________________________
If you find the answer helpful, please mark this topic as solved.

20-10-2003 at 11:22 AM
View Profile Send Email to User Show All Posts | Quote Reply
Chris_871
Level: Master


Registered: 30-11-2002
Posts: 106
icon Re: Creating A User Control

Hi Goran

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.


by
chris

20-10-2003 at 06:57 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : ActiveX : Creating A User Control
Previous Topic (Combo Box in Word (activex))Next Topic (Custom Control Error: \'Not a Valid interface or implements\') New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder