Results 1 to 11 of 11

Thread: frame1 border color

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    38

    frame1 border color

    how do i can write code to change border color in frame1!

  2. #2
    Lively Member
    Join Date
    Jan 2006
    Posts
    114

    Re: frame1 border color

    you mean form1, and you cant to my knowledge. just draw a rectangle... *whislte*

  3. #3
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: frame1 border color

    i dont think you can do that with frames
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

  4. #4

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    38

    Re: frame1 border color

    no i mean frame1 not form.

  5. #5

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    38

    Re: frame1 border color

    if i can't do it with frame, is there is any other way that i can desing with color border!

  6. #6
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: frame1 border color

    You can use a picturebox, it's also a container control. Then you can simply remove its border (borderstyle = 0), change Autoredraw Property to True and draw it yourself.
    Like this..
    VB Code:
    1. With Picture1
    2.         .BorderStyle = 0   'or set it in properties
    3.         .AutoRedraw = True 'or set it in properties
    4.         .DrawWidth = 4
    5.         .Line 3, 0, 0, .ScaleWidth, 0, vbRed
    6.         .Line 3, .ScaleWidth, 0, .ScaleWidth, .ScaleHeight, vbRed
    7.         .Line 3, .ScaleWidth, .ScaleHeight, 0, .ScaleHeight, vbRed
    8.         .Line 3, 0, .ScaleHeight, 0, 0, vbRed
    9.     End With

  7. #7
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: frame1 border color

    try to look at this one
    Attached Files Attached Files
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

  8. #8

    Thread Starter
    Member
    Join Date
    Apr 2005
    Posts
    38

    Re: frame1 border color

    What I want is frame come words on the border, if i use picturem1 for color, how can i put words on the color border!
    Last edited by Alidad; Mar 29th, 2006 at 11:41 PM.

  9. #9
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: frame1 border color

    try to download my attachment in post # 7 and see how i did it with picture boxes
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

  10. #10
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: frame1 border color

    or you can use a third party control called becubbed frame control. if you do it with a picture box then place a label for your caption.
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  11. #11
    Frenzied Member d3gerald's Avatar
    Join Date
    Jan 2006
    Posts
    1,348

    Re: frame1 border color

    i like the idea of using a third party control. lesser hastles
    On error goto Trap

    Trap:
    in case of emergency, drop the case...

    ****************************************
    If this post has been resolved. Please mark it as "Resolved" by going through the "Thread Tools" above and clicking on the "Mark Thread Resolved " option.
    if a post is helpful to you, Please Rate it by clicking on the Rate link right below the avatar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width