Not a Member Yet,
Click here to Register

ID: 54
Viewed: 2799
Added: Dec 09, 2001
Version:
Snippet uploaded by: snippet
Written By: Ricardo Buccianti
Demo: Sorry, no demo



User Rated at: 0 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

Tired of the same old square Frame? This short code creates a frame with rounded corners to turn your application unique

Highlight all by clicking in box
<!---Declaration--->
On a form, place two frame objects and name them Frame1 and Frame2 and also a label named Label1. Frame1 should be sized and located
exactly where you want the frame to be in your form and Frame2 could be placed anywhere in your form.

Run the program, the result is real cool!!!

Highlight All
<!---Code--->
Private Sub Form_Load()
SetNewShape
End Sub

Private Sub SetNewShape()
With Shape1
.BackColor = &H8000000F
.BackStyle = 0
.BorderColor = &H8000000C
.BorderStyle = 1
.BorderWidth = 1
.FillStyle = 1
.Shape = 4
End With
With Shape2
.BackColor = &H8000000F
.BackStyle = 1
.BorderColor = &H80000009 ''white for contrast
.BorderStyle = 1
.BorderWidth = 1
.FillStyle = 1
.Shape = 4
.Height = Shape1.Height
.Left = Shape1.Left + 20 ''move to the left
.Top = Shape1.Top + 20 ''move down
.Width = Shape1.Width
End With
With Label1
.Width = Label1.Width + 110
.Left = Shape1.Left + 350
.Top = Shape1.Top - 110
.ZOrder
End With
End Sub;


No Comments to show

Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Replying to a Comment...


Adding your comment. Please wait...

Thanks for adding your comment!. After further review it will be added.

There was a problem adding your comment. Please try again.

Please complete all the fields in the form before sending.

© 2002 - 2024 snippetlibrary.com All Rights Reserved. Conditions
Do NOT follow this link or you will be banned from the site!