Quote Originally Posted by TupacShakur
But imagine doing this say for 6 frames within ur application (on different forms), well i might just quit programming in VB !!!
You let VB do it for you.

here is a sub that will turn a picturebox in a reasonable frame look-a-like:
VB Code:
  1. Private Sub Picture2Frame(ByRef oPic As PictureBox, ByVal sCaption As String, _
  2.                                   Optional ByVal lBorderColour As Long = &H8000000C, _
  3.                                   Optional ByVal lTextColour As Long = vbBlack, _
  4.                                   Optional ByVal oFont As StdFont)
  5.                                  
  6.     Dim lbl As Label, lGap As Long
  7.     With oPic
  8.         .AutoRedraw = True
  9.         .BorderStyle = 0
  10.         .Appearance = 0
  11.         .ScaleMode = vbPixels
  12.         .BackColor = vbButtonFace
  13.     End With
  14.     Set lbl = Me.Controls.Add("VB.Label", "piclbl" & Me.Controls.Count)
  15.     With lbl
  16.         Set .Container = oPic
  17.         .AutoSize = True
  18.         .Caption = " " & sCaption & " "
  19.         .ForeColor = lTextColour
  20.         If Not oFont Is Nothing Then Set lbl.Font = oFont
  21.         lGap = .Height \ 2
  22.         .Left = 2 * lGap
  23.         .Top = 0
  24.         .Visible = True
  25.     End With
  26.     oPic.Line (lGap, lGap)-(oPic.ScaleWidth - lGap, oPic.ScaleHeight - lGap), lBorderColour, B
  27.     Set lbl = Nothing
  28.     Set oFont = Nothing
  29. End Sub
So in the Form_Load you do:
VB Code:
  1. Private Sub Form_Load()
  2.     Picture2Frame Picture1, "First Frame", , vbBlue
  3.     Picture2Frame Picture2, "Second Frame", vbBlack, vbRed
  4.  
  5.     ' or you can pass a font to use as well
  6.     With Picture3
  7.         .FontBold = True
  8.         .FontName = "Comic Sans MS"
  9.         .FontSize = 14
  10.     End With
  11.     Picture2Frame Picture3, "Third Frame", , , Picture3.Font
  12. End Sub