473,385 Members | 1,326 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.

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 2033
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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.