T tihmir Registered User. Local time Today, 09:34 Joined May 1, 2018 Messages 257 Jan 2, 2023 #1 Happy New Year to all! I wish you all happiness and health! How can I remove that border, which remains around the button is pressed?
Happy New Year to all! I wish you all happiness and health! How can I remove that border, which remains around the button is pressed?
Eugene-LS Registered User. Local time Today, 19:34 Joined Dec 7, 2018 Messages 512 Jan 2, 2023 #2 tihmir said: How can I remove that border, which remains around the button is pressed? Click to expand... Try to set focus to enother control of form Code: Private Sub cmdButton_Click() ' ... ' ... Me.EnotherControl.SetFocus End Sub
tihmir said: How can I remove that border, which remains around the button is pressed? Click to expand... Try to set focus to enother control of form Code: Private Sub cmdButton_Click() ' ... ' ... Me.EnotherControl.SetFocus End Sub
T tihmir Registered User. Local time Today, 09:34 Joined May 1, 2018 Messages 257 Jan 2, 2023 #3 Eugene-LS said: Try to set focus to enother control of form Code: Private Sub cmdButton_Click() ' ... ' ... Me.EnotherControl.SetFocus End Sub Click to expand... Yes, that is a possible option, but it is quite laborious to do for all buttons! Тhank you for the advice! Last edited: Jan 2, 2023
Eugene-LS said: Try to set focus to enother control of form Code: Private Sub cmdButton_Click() ' ... ' ... Me.EnotherControl.SetFocus End Sub Click to expand... Yes, that is a possible option, but it is quite laborious to do for all buttons! Тhank you for the advice!
Eugene-LS Registered User. Local time Today, 19:34 Joined Dec 7, 2018 Messages 512 Jan 2, 2023 #4 tihmir said: How can I remove that border, which remains around the button is pressed? Click to expand... Another way: Use a Label control instead of a button, it also has an "On Click" event. Code: Private Sub LabelTest_Click() MsgBox "There's no border around the Lable!", _ vbInformation, "Use a label instead of a button!" End Sub
tihmir said: How can I remove that border, which remains around the button is pressed? Click to expand... Another way: Use a Label control instead of a button, it also has an "On Click" event. Code: Private Sub LabelTest_Click() MsgBox "There's no border around the Lable!", _ vbInformation, "Use a label instead of a button!" End Sub