Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8422065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:19:56+00:00 2026-06-10T03:19:56+00:00

In trying to remove black border from spin button onclick (btw, I’m very interesting

  • 0

In trying to remove black border from spin button onclick
(btw, I’m very interesting about the reasons for this ugly black border)

Private Sub spin01_SpinUp()
... //some code
ch01.SetFocus // ch01 is a textbox

First click – there are no borders
Next click – borders are there
Next click – there are no borders – and so on
The same is for SpinDown()
Very strange, isn’t it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:19:58+00:00Added an answer on June 10, 2026 at 3:19 am

    Those black borders are to let you know the spin button currently has focus. If you click on the textbox ch01 on your userform, then the lines will go away. AFAIK there isn’t any property to remove those Black Borders permanently.

    What is happening in your case is the code transfers the focus to the textbox ch01 and that is when you do not see the borders but when the focus comes back to the Spin Button, those black borders are back.

    Alternative:

    Use Two command buttons and replicate the functionality of the Spin Button. You can also change the .Picture to show arrows instead of text on the command button. See Screenshot Below

    enter image description here

    FOLLOWUP

    Private Sub spin01_SpinUp()
        '
        '~~> Rest of the code
        '
        wait 0.1
        ch01.SetFocus
    End Sub
    
    Private Sub spin01_SpinDown()
        '
        '~~> Rest of the code
        '
        wait 0.1
        ch01.SetFocus
    End Sub
    
    Public Sub wait(ByVal nsec As Double)
        nsec = nsec + Timer
        While nsec > Timer
            DoEvents
        Wend
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to find a way to remove blank pages from a document I wrote
I'm trying to remove scrollbar from my facebook app. I tried js solution, that
I'm trying to remove wiki formatting from some text so it can be parsed.
I'm trying to remove a specific graph object from the zedgraph, is it possible....?
I am trying to remove an object from an ArrayList and here is the
Hello I was trying to remove objects from object array that I have and
I am have buttons like this: <button type=button class=img img_button_bla onclick=...>Bla!</button> The img class
I am trying to remove a certain color from my image however it's not
So im trying to style a submit button. The background comes from a transparent
I'm trying to remove any duplicate or more occurrences of any < br >

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.