473,385 Members | 1,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Picturebox, focus, and tabstops

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

Mar 28 '06 #1
4 6234
Do you actually have a Button control within a PictureBox control or is the
PictureBox treated as the button?

--
Tim Wilson
..NET Compact Framework MVP

<mu*****@hotmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
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

Mar 28 '06 #2
I have no Button control, it is simply a PictureBox that handles the
click events to start the "delete" method.

-M

Mar 28 '06 #3
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.

--
Tim Wilson
..NET Compact Framework MVP

<mu*****@hotmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
I have no Button control, it is simply a PictureBox that handles the
click events to start the "delete" method.

-M

Mar 28 '06 #4
Thanks Tim.

Mar 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mefloyd | last post by:
Using the SendMessage API, I know how to set tabstops in a list box. However, the code only works if the style property of the listbox is set to 0 - Standard. I would like to set tabs in a...
1
by: David M | last post by:
IS there a way to access a keydown event from the .net picturebox control. I need to display a picture and have the user press the page up/down key to go to the previous/next pic. I see mouse...
2
by: active | last post by:
I have a picturebox usercontrol sitting on a usercontrol. I need a KeyPress event in the PictureBox. I suppose I could have a property in the pictureBox that is accessed by a call in a...
4
by: VCIF | last post by:
Hi SendMessage LB_SETTABSTOPS works for ListBox but does not work for CheckedListBox. The CheckedListBox does have UseTabStops=True and does in fact show the tab spacing. The problem is that the...
0
by: Matt | last post by:
This took way to long to figure out - now that I have it working I thought I would share with the group. I've seen tons of posts with very little good answers on this seemingly simple thing that...
5
by: signingupsucksman | last post by:
Hi, Ive tried searching the net for an example on how to use the SendMessage API with tabstops since the program Im working with has all the same class names and most captions are blank, Im not...
0
by: prl | last post by:
hey there! I have a pictureBox in my application with a chart drawn by me (line by line..). What I want to do now is to save that chart in a image file (.bmp). Is that possible? And how can I...
5
by: Fao, Sean | last post by:
I'm working on a Windows application (VS 2005) that I will need to be able to select images I've added to a FlowLayoutPannel. I was attempting to select the various PictureBoxes and noticed that...
1
by: john ciriello | last post by:
I created a form and put a button and a label on it. I set the tabstops to false. When I first run it I can click the button and there is no focus rectangle. Which is what I want. However, if I...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.