472,805 Members | 4,107 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Using function keys to change Tabs ... and F8 kills it all ... AAAAAAAAAARGH

Greeetings All ..

For my users convenience I have mapped function keys F2 .. F12 to change
the tabs on the Tabcontrol.

Works like a charm <ominous musicuntil one hits F8</ominous music>

That particular tabpage has a webbrowser object embedded in it .. and after
it flicks to that tabpage it no longer plays nice with the other Tabpages
.. click on another Tab using the mouse and all is wonderful again. (unless
you hit the dreaded F8)

below is my function for key trapping :

protected override bool ProcessDialogKey(Keys keyData)
{
switch (keyData)
{
case Keys.Control | Keys.M:
toggle_maintenance();
break;

case Keys.F2:
changeActiveTab(0, 0);
break;

case Keys.F3:
changeActiveTab(1, 0);
break;

case Keys.F4:
changeActiveTab(2, 0);
break;

case Keys.F5:
changeActiveTab(3, 0);
break;

case Keys.F6:
changeActiveTab(4, 0);
break;

case Keys.F7:
changeActiveTab(5, 0);
break;

case Keys.F8:
changeActiveTab(6, 0);
break;

case Keys.F10:
open_downtime_dialog();
break;

case Keys.F11:
new_job_screen();
break;

case Keys.F12:
open_shift_dialog();
break;

default:
/// nothing to do here ... move along
break;
}

return base.ProcessDialogKey(keyData);
}

Does the browser being active steal control of my function keys .. is there
a way around it? Do I have to sue some-one for mental anguish and never have
to write software again ????

---------------------------------------------
[Sam Samson] - There is no greater folly than fixed price quoting.
Sep 20 '07 #1
1 2010
Hi,

Does the browser being active steal control of my function keys .. is
there a way around it? Do I have to sue some-one for mental anguish and
never have to write software again ????
Most probably. What if you use the messagehook to try and override it?
Sep 20 '07 #2

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

Similar topics

6
by: David Gerstman | last post by:
I've written an application for reading information from a spreadsheet and allowing the user to add and update information in the spreadsheet. One spreadsheet I accessed in this fashion is now...
4
by: Michael Sparks | last post by:
Anyway... At Europython Guido discussed with everyone the outstanding issue with decorators and there was a clear majority in favour of having them, which was good. From where I was sitting it...
11
by: Pontus F | last post by:
Hi I am learning C++ and I'm still trying to get a grip of pointers and other C/C++ concepts. I would appreciate if somebody could explain what's wrong with this code: ---begin code block--- ...
112
by: Andy | last post by:
Hi All! We are doing new development for SQL Server 2000 and also moving from SQL 7.0 to SQL Server 2000. What are cons and pros for using IDENTITY property as PK in SQL SERVER 2000? Please,...
10
by: Gregory Piñero | last post by:
Hey guys, I thought I'd throw this out there since everyone loves optimization questions (it's true, check out the number of replies to those type of questions!) Right now I have a function...
1
by: ansc1 | last post by:
Hello, I'm new to using php coding. I need help with the following: 1. There is a submit button on the form and is saves information to my database. After clicking on "Save Measurement" it...
8
by: Conan Kelly | last post by:
Crossposted: microsoft.public.dotnet.languages.vb microsoft.public.sqlserver.integrationsvcs Hello all, In XL 2003's VBA, I could use the format function to change "11SEP2008" (a string)...
10
rizwan6feb
by: rizwan6feb | last post by:
Hi I have created a tabbed interface using jQuery using the code below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">...
4
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.