Removing black border on button

kazaf

Newcomer
Joined
Dec 18, 2004
Messages
3
Hi guyz,

I have a form with several buttons on it. The button will be able to move around after i click on anyone of the button and click the arrow keys after that.

All works fine. The problem is the black border on the button. It will toggle among all the buttons as i move the selected button around using the arrow keys which will look very weird :rolleyes:

Anyone have any suggestion as to how i can remove the black border on the button or can i fixed the black border on the selected button??

Thankz in advance :)
 
Thanks. I tried that but the black border around the button
still continue to move to another button when i press the arrow key to move the selected button.

I also tired to set the tabIndex() of all the button to 0 but it still doesn't work

ok i try to add more infomation
I have set the KeyPreview of the form that contain the buttons to true.
Me.KeyPreview = True

Then in the KeyDown method of the Form, i do the movement of the selected button
If e.Keycode = Keys.Up Then
....
...
End If

Another thing to add is all this button is created at runtime and not during design mode.
 
Hi, its me again

I have created a example to explain the problem I am facing.
The example is created using Framework1.1.

I use module file as i will be using this to interact across several class.

Hope someone can help me. I tried setting the tabstop to false and tabindex to 0 but to no avail. :(
 

Attachments

Back
Top