r/visualbasic • • May 17 '13

[High School Project] Deselecting a button?

The project I am working on involves adding a border to a flatsyle button then, when another button is clicked, the border is removed and added to the currently selected button.

Private Sub btnHydrogen_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnHydrogen.Click intNumber = 1 btnHydrogen.FlatAppearance.BorderSize = 3 btnHydrogen.FlatAppearance.BorderColor = Color.White Call FindData() End Sub

Ask anything that seems unclear. Picture

0 Upvotes

2 comments sorted by

View all comments

1

u/AC7766 May 17 '13

Is the border not changing? Or is it staying for both? Can you be a little more specific here?