Results 1 to 34 of 34

Thread: Blue border appear around a Button? [Resolved]

  1. #1

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Blue border appear around a Button? [Resolved]

    Is there a straightforward way to make a Blue border appear around a command button?

    I need the easiest method possible, I have a usercontrol with a single button on it and resizing is very straighforward. If I have to start juggling pictures and pixels and twips I will be very sad...
    Last edited by Dave Sell; Jul 15th, 2005 at 10:02 AM. Reason: Got a TON of help!
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Blue border appear around a Button?

    What sort of border? The highlight you get with XP styles, or just 4 straight blue lines?

  3. #3
    Hyperactive Member Datacide's Avatar
    Join Date
    Jun 2005
    Posts
    309

    Re: Blue border appear around a Button?

    The easiest way would probably be to use the Shape control. Do you need to border always there, or when you click the button?
    PHP in your FACE!

  4. #4
    Lively Member reado's Avatar
    Join Date
    Mar 2005
    Posts
    78

    Re: Blue border appear around a Button?

    Hi I have made a sub for you.

    All you need to do is add a shape control to your form called shape1, some where out of the way.
    set the shape to rectangle, and the border color to blue.

    Then pass the bellow sub the name of your commanbutton

    VB Code:
    1. Public Sub DoBlueBox(pCommandButton As CommandButton)
    2.  
    3.    Shape1.Left = pCommandButton.Left - 10
    4.    Shape1.Top = pCommandButton.Top - 10
    5.    Shape1.Width = pCommandButton.Width + 20
    6.    Shape1.Height = pCommandButton.Height + 20
    7.  
    8. End Sub

  5. #5

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button?

    OK, reado, I will try your suggestion. Remember though, that this is a UserControl which has a single command button on it, and the resizing of the Usercontrol went something like this (OK, exactly like this):

    VB Code:
    1. Private Sub UserControl_Resize()
    2.     cmdButton.Height = Height
    3.     cmdButton.Width = Width
    4. End Sub

    Now, with the introduction of a second control, will screen resolution become a factor in the new UserControl_Resize routine? This complicates my resize routine.

    Dave
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  6. #6

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button?

    Also, there will be times when the button has no blue border (this is driven by external events in the system). So sometimes there will be no border. How will the UserControl look then?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  7. #7

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button?

    Quote Originally Posted by Datacide
    The easiest way would probably be to use the Shape control. Do you need to border always there, or when you click the button?
    The border will not always be there.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  8. #8

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button?

    Quote Originally Posted by penagate
    What sort of border? The highlight you get with XP styles, or just 4 straight blue lines?
    Either way, I guess. This is a "Client Request"
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  9. #9
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Blue border appear around a Button?

    Quote Originally Posted by reado
    Hi I have made a sub for you.

    All you need to do is add a shape control to your form called shape1, some where out of the way.
    set the shape to rectangle, and the border color to blue.

    Then pass the bellow sub the name of your commanbutton

    VB Code:
    1. Public Sub DoBlueBox(pCommandButton As CommandButton)
    2.  
    3.    Shape1.Left = pCommandButton.Left - 10
    4.    Shape1.Top = pCommandButton.Top - 10
    5.    Shape1.Width = pCommandButton.Width + 20
    6.    Shape1.Height = pCommandButton.Height + 20
    7.  
    8. End Sub
    Very cool!

    (PS: Datacide: Your quote is from the hacker's Manifesto by "the Mentor")

  10. #10
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Blue border appear around a Button?

    Quote Originally Posted by Dave Sell
    Either way, I guess. This is a "Client Request"
    Yay, one of those.

    If you want another way...

    Set your scalemode to Pixels. Add a picture box to your usercontrol with coordinates (0, 0) and name it picLines. Then move your cmdButton to (2, 2). Then try this resize code:
    VB Code:
    1. Private Sub UserControl_Resize()
    2.     cmdButton.Height = ScaleHeight - 4
    3.     cmdButton.Width = ScaleWidth - 4
    4.     With picLines
    5.         .Height = ScaleHeight
    6.         .Width = ScaleWidth
    7.         .Line (0, 0)-(.Width, 0), RGB(0, 0, 255)
    8.         .Line (.Width, 0)-(.Width, .Height), RGB(0, 0, 255)
    9.         .Line (.Width, .Height)-(0, .Height), RGB(0, 0, 255)
    10.         .Line (0, .Height)-(0, 0), RGB(0, 0, 255)
    11.     End With
    12. End Sub


  11. #11
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Blue border appear around a Button?

    Quote Originally Posted by Hack
    (PS: Datacide: Your quote is from the hacker's Manifesto by "the Mentor")
    Did you get my PM about that Datacide

  12. #12
    Hyperactive Member Datacide's Avatar
    Join Date
    Jun 2005
    Posts
    309

    Re: Blue border appear around a Button?

    Quote Originally Posted by penagate
    Did you get my PM about that Datacide
    ya penagate, check my sig!
    PHP in your FACE!

  13. #13

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button?

    Quote Originally Posted by penagate
    Yay, one of those.

    If you want another way...

    Set your scalemode to Pixels. Add a picture box to your usercontrol with coordinates (0, 0) and name it picLines. Then move your cmdButton to (2, 2). Then try this resize code:
    VB Code:
    1. Private Sub UserControl_Resize()
    2.     cmdButton.Height = ScaleHeight - 4
    3.     cmdButton.Width = ScaleWidth - 4
    4.     With picLines
    5.         .Height = ScaleHeight
    6.         .Width = ScaleWidth
    7.         .Line (0, 0)-(.Width, 0), RGB(0, 0, 255)
    8.         .Line (.Width, 0)-(.Width, .Height), RGB(0, 0, 255)
    9.         .Line (.Width, .Height)-(0, .Height), RGB(0, 0, 255)
    10.         .Line (0, .Height)-(0, 0), RGB(0, 0, 255)
    11.     End With
    12. End Sub

    OK, thanks for going the extra mile, but I am still concerned what the UserControl will look like when I need the blue border to "go away"... Will there be a goofy background border? Maybe I can make the picbox transparent?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  14. #14
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Blue border appear around a Button?

    Quote Originally Posted by reado
    Hi I have made a sub for you.

    All you need to do is add a shape control to your form called shape1, some where out of the way.
    set the shape to rectangle, and the border color to blue.

    Then pass the bellow sub the name of your commanbutton

    VB Code:
    1. Public Sub DoBlueBox(pCommandButton As CommandButton)
    2.  
    3.    Shape1.Left = pCommandButton.Left - 10
    4.    Shape1.Top = pCommandButton.Top - 10
    5.    Shape1.Width = pCommandButton.Width + 20
    6.    Shape1.Height = pCommandButton.Height + 20
    7.  
    8. End Sub
    I changed you function a little, it will now accept a Shape and the Command button as well as the color of the border. Now this function can be used in a Module and will be available to the entire project.

    VB Code:
    1. Public Sub CmdButBorder(cntCmdBut As CommandButton, _
    2.                         cntShape As Shape, _
    3.                         Optional lngColor As Long = vbYellow)
    4. Dim snlLeft As Single
    5. Dim snlTop As Single
    6. Dim snlWidth As Single
    7. Dim snlHeight As Single
    8.  
    9.     With cntCmdBut
    10.         snlLeft = .Left - 10
    11.         snlTop = .Top - 10
    12.         snlWidth = .Width + 25
    13.         snlHeight = .Height + 25
    14.     End With
    15.  
    16.    With cntShape
    17.         .Move snlLeft, snlTop, snlWidth, snlHeight
    18.         .BorderColor = lngColor
    19.     End With
    20. End Sub
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  15. #15
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Blue border appear around a Button?

    Quote Originally Posted by Dave Sell
    OK, thanks for going the extra mile, but I am still concerned what the UserControl will look like when I need the blue border to "go away"... Will there be a goofy background border? Maybe I can make the picbox transparent?

    No just use my function and change the border to the color of the background of the form etc.
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  16. #16

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button?

    Quote Originally Posted by Mark Gambo
    No just use my function and change the border to the color of the background of the form etc.
    I will never know the color of the "form". This is a COM UserControl, which can be used all over the place. This is part of the problem.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  17. #17
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Blue border appear around a Button?

    Try,
    when you are done with the border, setting the mask colour of the usercontrol to RGB(0,0,255). Then it should nuke the lines.

  18. #18
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Blue border appear around a Button?

    Quote Originally Posted by Dave Sell
    I will never know the color of the "form". This is a COM UserControl, which can be used all over the place. This is part of the problem.
    Sorry, I missed that, then why not setting the .Visible Property to false?
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  19. #19
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Blue border appear around a Button?

    Oh duh yes. Just set picLines.Visible = False. I tried the MaskColor and it didn't work anyway

  20. #20

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button?

    All,

    Thanks for the great responses! I am uploading a simple sample control and then I will try your suggestions. You all are welcome to make your own mods to prove your points.

    Just make a new "ActiveX Control" Project, and compile this control to an .OCX, then use it on a new EXE Form. You will see what I mean when you try these things.
    Attached Files Attached Files
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  21. #21

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button?

    Here is my solution. Tell me what you think: Will I have problems on different screen resolutions (Curse the dreaded twip-monster).

    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub cmdButton_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    4.     cmdButton.Top = 50
    5.     cmdButton.Left = 50
    6.     cmdButton.Height = Height - 100
    7.     cmdButton.Width = Width - 100
    8. End Sub
    9.  
    10. Private Sub cmdButton_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    11.     cmdButton.Top = 0
    12.     cmdButton.Left = 0
    13.     cmdButton.Height = Height
    14.     cmdButton.Width = Width
    15. End Sub
    16.  
    17. Private Sub UserControl_Resize()
    18.     cmdButton.Height = Height
    19.     cmdButton.Width = Width
    20.     '
    21.     BlueBorder.Height = Height
    22.     BlueBorder.Width = Width
    23. End Sub
    Attached Files Attached Files
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  22. #22
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Blue border appear around a Button? [Resolved]

    Twips are usually 15 to a pixel. But why don't you use ScaleMode as pixels instead? Then no more monster...

  23. #23

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button? [Resolved]

    Quote Originally Posted by penagate
    Twips are usually 15 to a pixel.
    Totally unpredictable. Twips are dependant on the client's Screen SIZE (ie.. 15" monitor diff than 19" monitor), and also screen resolution.


    Quote Originally Posted by penagate
    But why don't you use ScaleMode as pixels instead? Then no more monster...
    OK, I will try this for sure!
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  24. #24

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button? [Resolved]

    ScaleMode looks like it has to be twip. The UserControl goes out-of-control ugly in any other scale mode when dropped on a COM consumer (like a VB6 Form).
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  25. #25
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Blue border appear around a Button? [Resolved]

    Have you converted all your measurements to use the .ScaleHeight, .ScaleWidth properties, and to pixels rather than twips?

  26. #26
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Blue border appear around a Button? [Resolved]

    VB Code:
    1. Private Sub cmdButton_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    2.     cmdButton.Top = 5
    3.     cmdButton.Left = 5
    4.     cmdButton.Height = ScaleHeight - 10
    5.     cmdButton.Width = ScaleWidth - 10
    6. End Sub
    7.  
    8. Private Sub cmdButton_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    9.     cmdButton.Top = 0
    10.     cmdButton.Left = 0
    11.     cmdButton.Height = ScaleHeight
    12.     cmdButton.Width = ScaleWidth
    13. End Sub
    14.  
    15. Private Sub UserControl_Resize()
    16.     cmdButton.Height = ScaleHeight
    17.     cmdButton.Width = ScaleWidth
    18.     '
    19.     BlueBorder.Height = ScaleHeight
    20.     BlueBorder.Width = ScaleWidth
    21. End Sub

  27. #27

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button? [Resolved]

    Quote Originally Posted by penagate
    Have you converted all your measurements to use the .ScaleHeight, .ScaleWidth properties, and to pixels rather than twips?
    How? They are just numbers. ScaleHeight = 102, and Scale Width = 189

    What should they be?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  28. #28
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Blue border appear around a Button? [Resolved]

    Quote Originally Posted by Dave Sell
    How? They are just numbers. ScaleHeight = 102, and Scale Width = 189

    What should they be?
    Did you try my code in post #26?

  29. #29
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Blue border appear around a Button? [Resolved]

    I am not sure if this is what you what but take a look:

    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub CmdButBorder(cntCmdBut As CommandButton, _
    4.                         cntShape As Shape, _
    5.                         Optional lngColor As Long = vbYellow)
    6. Dim snlLeft As Single
    7. Dim snlTop As Single
    8. Dim snlWidth As Single
    9. Dim snlHeight As Single
    10.  
    11.     With cntShape
    12.         snlLeft = .Left + 10
    13.         snlTop = .Top + 10
    14.         snlWidth = .Width - 25
    15.         snlHeight = .Height - 25
    16.         .BorderColor = lngColor
    17.     End With
    18.  
    19.    With cntCmdBut
    20.         .Move snlLeft, snlTop, snlWidth, snlHeight
    21.     End With
    22. End Sub
    23.  
    24. Private Sub UserControl_Resize()
    25.     Shape1.Move 0, 0, Width, Height
    26.     cmdButton.Height = Shape1.Height + 25
    27.     cmdButton.Width = Shape1.Height + 10
    28.     Call CmdButBorder(cmdButton, Shape1, vbBlue)
    29. End Sub
    30.  
    31. Private Sub cmdButton_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    32.     Shape1.BorderColor = cmdButton.BackColor
    33. End Sub
    34.  
    35. Private Sub cmdButton_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    36.     Call CmdButBorder(cmdButton, Shape1, vbBlue)
    37. End Sub
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  30. #30
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: Blue border appear around a Button? [Resolved]

    A bit of an advertisement: UniCommand at CodeBank. It doesn't have a colored border all the time, just when the button is the default button. You can change the color by changing FillColor (or BorderColor, I can't remember if I changed it). Note that it doesn't support XP style (atleast afaik), but you can easily change the BorderStyle. And it also supports Unicode as the name states.

  31. #31

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button? [Resolved]

    Quote Originally Posted by penagate
    VB Code:
    1. Private Sub cmdButton_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    2.     cmdButton.Top = 5
    3.     cmdButton.Left = 5
    4.     cmdButton.Height = ScaleHeight - 10
    5.     cmdButton.Width = ScaleWidth - 10
    6. End Sub
    7.  
    8. Private Sub cmdButton_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    9.     cmdButton.Top = 0
    10.     cmdButton.Left = 0
    11.     cmdButton.Height = ScaleHeight
    12.     cmdButton.Width = ScaleWidth
    13. End Sub
    14.  
    15. Private Sub UserControl_Resize()
    16.     cmdButton.Height = ScaleHeight
    17.     cmdButton.Width = ScaleWidth
    18.     '
    19.     BlueBorder.Height = ScaleHeight
    20.     BlueBorder.Width = ScaleWidth
    21. End Sub
    I never tried this code, I just noticed your scaleW/H lines - I will try it now.
    Last edited by Dave Sell; Jul 15th, 2005 at 04:06 PM.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  32. #32

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button? [Resolved]

    Here is my final solution (minus my cool secret intellegence). Feel free to use or whatever. Notice the 2 DEsign-time Properties, Color and ColorBorderWidth.

    Enjoy!
    Attached Files Attached Files
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  33. #33
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: Blue border appear around a Button? [Resolved]

    Quote Originally Posted by Dave Sell
    Here is my final solution (minus my cool secret intellegence). Feel free to use or whatever. Notice the 2 DEsign-time Properties, Color and ColorBorderWidth.


    Enjoy!

    Nice control, good work!
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


  34. #34

    Thread Starter
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Blue border appear around a Button? [Resolved]

    Quote Originally Posted by Mark Gambo
    Nice control, good work!
    Thanks, and thanks for all your input! I am adding another 2 Public Subs btw; .BorderOn and .BorderOff - you can guess what they do
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

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