473,723 Members | 2,244 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6261
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*****@hotmai l.com> wrote in message
news:11******** **************@ e56g2000cwe.goo glegroups.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*****@hotmai l.com> wrote in message
news:11******** **************@ t31g2000cwb.goo glegroups.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
2457
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 listbox with the style set to 1 - Checkbox. Does anyone know how to achieve this? Regards, Michael Floyd
1
8004
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 events but not keypress. If the PB does not have this, then is there a way to intercept a kepress from any control on the form? Thanks
2
2635
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 KeyPressed event in the UserControl. Right? Kind of kludge - is there a more direct way? The usercontrol needs no KeyPress event at all and the Picturebox needs them all.
4
1646
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 tabstops are in awkward places for my data. Any suggestions? Is this "by design" for the CheckedListBoxes not to respond vin
0
5084
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 took me 2 hours to figure out! You can set tabs through RichTextBox using the cheesy SelectAll()-> SelectionTabs() method, but that only works after the text has been entered. If the user hits Enter on any line, it goes back and uses the...
5
2747
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 sure why. Thank you.
0
1695
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 do it? also, when I have my application running and I change to another windows, when I get back to my application the pictureBox is empty.. I presume I should have a pictureBox.Focus() somewhere, but where? thanks in advance..
5
7786
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 it wasn't working. Reading through the MSDN to find out why, I ran across the following: "The PictureBox is not a selectable control, which means that it cannot receive input focus." This obviously puts a damper on the project. Is there any...
1
2715
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 press the tab key nothing initially seems to happen, I know nothing should because I set the tabstop to false, but to my surprise, when I then click the button again a focus rectangle appears. This I do not want. Any Ideas on how to stop this...
0
8740
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9386
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8059
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5996
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4764
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3208
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2606
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2148
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.