Picturebox, focus, and tabstops

M

munglet

Is there anyway to get a picturebox to recieve focus?

I ask because I implemented a "delete" button in a picturebox (due to
size constraints), but now due to accessibility reasons I need to be
able to tab to the picturebox via the keyboard. Since the picturebox
doesn't recieve focus the user can't get to the picturebox control. Am
I missing something?

This is using .NET 1.1

Thanks for any help.

-M
 
T

Tim Wilson

Do you actually have a Button control within a PictureBox control or is the
PictureBox treated as the button?
 
M

munglet

I have no Button control, it is simply a PictureBox that handles the
click events to start the "delete" method.

-M
 
T

Tim Wilson

Does the control need to be a PictureBox? What about using a Button with no
text and an image (either through the Image property, ImageList/ImageIndex,
or BackgroundImage)? You can play with the border through the FlatStyle
property. This will also take care of visually indicating to the user when
the control has focus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top