|
-
Jan 25th, 2002, 10:20 PM
#1
Thread Starter
New Member
-
Jan 25th, 2002, 10:28 PM
#2
Set the BorderStyle to Fixed Single.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jan 26th, 2002, 12:05 AM
#3
You can set it in the designer for the UserControl. Then, if you want to be able to change it, you'll have to make a property that changes the borderstyle.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jan 26th, 2002, 12:07 AM
#4
PowerPoster
Usercontrol.Borderstyle=1
0 for flat
-We have enough youth. How about a fountain of "Smart"?
-If you can read this, thank a teacher....and since it's in English, thank a soldier.

-
Jan 26th, 2002, 12:33 AM
#5
Originally posted by crptcblade
You can set it in the designer for the UserControl. Then, if you want to be able to change it, you'll have to make a property that changes the borderstyle.
Here is the code
VB Code:
Option Explicit
Enum Borders
None = 0
Fixed = 1
End Enum
Public Property Get BorderStyle() As Borders
BorderStyle = UserControl.BorderStyle
End Property
Public Property Let BorderStyle(New_BorderStyle As Borders)
UserControl.BorderStyle = New_BorderStyle
PropertyChanged "BorderStyle"
End Property
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
BorderStyle = PropBag.ReadProperty("BorderStyle", 0)
End Sub
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
PropBag.WriteProperty "Borderstyle", UserControl.BorderStyle, 0
End Sub
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
|