|
-
Aug 27th, 2000, 08:39 PM
#1
Thread Starter
Frenzied Member
you know how ocx's have ocx1.something
how do I make my own something, like
ocx1.backcolor = vbblue
how can I get my own stuff to some up after the . and work
NXSupport - Your one-stop source for computer help
-
Aug 27th, 2000, 08:50 PM
#2
Fanatic Member
Use the property Get/Set/Let statements
Code:
Private lMaxValue As Long
Property Get MaxValue() As Long
'return the max value of the bar
MaxValue = lMaxValue
End Property
Property Let MaxValue(MaxValue As Long)
'set the max value
lMaxValue = MaxValue
End Property
Iain, thats with an i by the way!
-
Aug 27th, 2000, 08:52 PM
#3
Thread Starter
Frenzied Member
so can you give me an example of how I can make it change the back color thourgh that way
NXSupport - Your one-stop source for computer help
-
Aug 27th, 2000, 09:03 PM
#4
Fanatic Member
Code:
Private lBackColour As Long
Property Get BackColor() As Long
BackColor = lBackColour
End Property
Property Let BackColor(Color As Long)
lBackColour = Color
'then set the backcolour of whatever
End Property
Iain, thats with an i by the way!
-
Aug 27th, 2000, 09:04 PM
#5
Thread Starter
Frenzied Member
NXSupport - Your one-stop source for computer help
-
Aug 28th, 2000, 01:45 AM
#6
Hyperactive Member
If you use OLE_COLOR instead of long, you get the button with the ... on it with which you can select a custom colour, and you get the drop down with system colours...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|