Hi!
I'm using arrow keys to navigate thru controls and I want my tab control to
implement that feature too, so when tabpage gets entered (focus is on the
header) DOWN key should focus on first tabpage control. Now, how can it
be achieved? I used to navigate using my utility classes, but recently
discovered that SendKeys.Send(" {TAB}") works fine too on most controls. Can
I use it on tab too?
thnx,
M.
4 1641
Hi!
I'm using arrow keys to navigate thru controls and I want my tab control to
implement that feature too, so when tabpage gets entered (focus is on the
header) DOWN key should focus on first tabpage control. Now, how can it
be achieved? I used to navigate using my utility classes, but recently
discovered that SendKeys.Send(" {TAB}") works fine too on most controls. Can
I use it on tab too?
thnx,
M.
Hi,
Glad to see someone in the same mess as me. (using custom navigation keys)
Well...If you use the {TAB} with the tabControl focused, it will go onto the next control (which will obviously not be the next tab page)
Tab pages are scrolled using the arrow keys (left and right) so you would have to send the arrow keys, but then someone has to make the decesion on which keys will those be, or commit to selecting tab pages using the mouse.
However, you could create chortcut keys (Alt+1 for tabpage1, and so on). This may be easier
I convinced them to use the mouse for tab selection , So i havent had the need to implement that as yet.
:) Hi!
Selecting tabpages is not the issue, selecting controls is. If my focus is on the tabpage header, {TAB} gives me the first control, which is fine. But when i focus on the first control, things get messy because i'm handling the tabcontrol's KeyDown which i cannot use since i'm handling KeyDown in my controls already. So what i need is some kind of a check to see if the tabpage header is actually focused, not the whole tabpage. Or some other idea?
M.
Hi,
Glad to see someone in the same mess as me. (using custom navigation keys)
Well...If you use the {TAB} with the tabControl focused, it will go onto the next control (which will obviously not be the next tab page)
Tab pages are scrolled using the arrow keys (left and right) so you would have to send the arrow keys, but then someone has to make the decesion on which keys will those be, or commit to selecting tab pages using the mouse.
However, you could create chortcut keys (Alt+1 for tabpage1, and so on). This may be easier
I convinced them to use the mouse for tab selection , So i havent had the need to implement that as yet.
:) Hi!
Selecting tabpages is not the issue, selecting controls is. If my focus is on the tabpage header, {TAB} gives me the first control, which is fine. But when i focus on the first control, things get messy because i'm handling the tabcontrol's KeyDown which i cannot use since i'm handling KeyDown in my controls already. So what i need is some kind of a check to see if the tabpage header is actually focused, not the whole tabpage. Or some other idea?
M.
I thought you answered yourself there.
You need to check if the tabcontrol is selected n the tabcontrols keydown event
So in the tabControls keydown event check if the tabcontrol is focused, if yes then continue, else dont handle the keys
wow. I thought I tried that one, but obviously haven't:) thanx, that was an eye opener right there:)
I thought you answered yourself there.
You need to check if the tabcontrol is selected n the tabcontrols keydown event
So in the tabControls keydown event check if the tabcontrol is focused, if yes then continue, else dont handle the keys
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: skipc |
last post by:
Hi,
I am stuck... I've got a popup window that displays a list in table
format with links on the bottom to navigate the list <prev> 1 2 3 ...
<next>
When I demo'd to the users... they immediately asked if they could use
the arrow keys and enter key to navigate the list. I think there must
be a way to do this, but I can't figure it out.
|
by: meh |
last post by:
I'm not sure if I have the right concept going. I am making a custom TabPage and executing it from a button click event. It works fine I'm just thinking I might be missing the finer points of the c# language. If not maybe I'm starting to catch on. Would like comments...better???...simpler???...
Here is the code....
tia
meh
// Build New Tab Page
//
string title = "tabPage" + (tabControl1.TabCount + 1).ToString();
|
by: RA |
last post by:
Hi
1) I want to create a TabPage class in design mode - how do I do it? What
type of project should I use? Is it going to be a custom control?
2) I have a TabControl that I would like to add to it the TabPage created in
step 1. I don't want to draw the TabPage on the Tabcontrol in design mode,
but to have a few TabPage controls that I candynamicaly load to the
TabControl at runtime.
Thanks
|
by: Andre Nogueira |
last post by:
Hi there.
I would like to know it is possible in VB.Net 2003 to see that a user has
clicked a tab page.
My goal is to close the tab page if the user clicks a tabpage "separator"
(not sure how to call it.. but it's that part that when you click on it the
whole tab page becomes visible) holding the Shift key it closes.
I can already see if the Shift key is being pressed using the Windows API,
but I don't have a clue about where should I...
|
by: Sam |
last post by:
Hi,
I need to add programmatically several tabpages to a tab control. Those
tabpages are all the same (i.e they contain a textbox and a listbox,
and a button).
How can I create my own tab control so that when I add a tabpage, it
will add also the other components ?
Regards
| |
by: TCook |
last post by:
Hello All,
I have a custom tabcontrol that is not displaying correctly.
If I use the custom collection sample from the following website:
http://dotnetrix.co.uk/tabcontrols.html
The pages show up. However, the custom properties for a tabpage that appear
from within the properties pages do not appear from within code. Also,
|
by: Rex the Strange |
last post by:
I suspect the answer to this question is "you can't," but here goes
anyway:
I have a tabcontrol which contains, of course, various tabpages (added
programmatically at runtime, but this is irrelevent to the question).
I've noticed, however, that the actual drawing canvas of the tabpage is
not flush with the edge of the tabpage. There is always a small one
pixel border on the top, right and bottom and a three pixel border on
the left. So,...
|
by: =?Utf-8?B?U2hhcm9u?= |
last post by:
Hello gurus,
I want to have a Form with a TabControl, this TabControl will contain
TabPage that has controls in it, this TabPage is prepared at design time.
I want in runtime to duplicate the TabPage that wad made during the design
time together with all its controls, but without the controls data.
Is there an easy way to do that?
|
by: nev |
last post by:
I know when is best to use some templates but listed below are most that I don't know when is best to use or even know how to use:
I am creating a windows application with mysql backend.
1. Windows Form - I use this mostly to create my windows forms
2. Dialog - I use this for windows that need user intervention
3. Explorer Form - maybe I will use this if I plan to make something like windows explorer
4. MDI Parent Form - I also use this...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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,...
| |
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |