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

Tab key behaves differently on groupBoxs? Is this .NET Framework Bug?

H
I have a couple of groupBoxs in my windowsform, these gruopBoxs contains a couple of TextBoxs in them, when i use keyboard 'Tab' key to traverse those Textboxs , groupBox3.ContainsFoucs is not setting to true when iam going from groupBox2 togroupBox3

example
groupBox1
textbox
textbox

groupBox
textbox
textbox4
so when i use Tab key of keyboard to traverse these textboxs ie. when iam going from textbox2 to textbox
the groupBox2.ContainsFocus is not set to true even though it is getting the focus
but when i use mouse clicking from textbox2 to textbox3 iam getting the groupBox2.ContainsFocus is set to tru
Is this the .Net framework Magic?:-
Nov 15 '05 #1
2 1098
Hi,
I tried your example, and it groupBox2_Enter eventhandler i showed a message
box with the (this.ContainsFocus)....then i tried tab button from text box
to another, and it showed the message.
Are you trying the same thing?

--
Rami Saad
Microsoft GTSC Developer support for Middle East
"seash" <an*******@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
Hi
I have a couple of groupBoxs in my windowsform, these gruopBoxs contains a couple of TextBoxs in them, when i use keyboard 'Tab' key to traverse
those Textboxs , groupBox3.ContainsFoucs is not setting to true when iam
going from groupBox2 togroupBox3.
example :
groupBox1
textbox1
textbox2

groupBox2
textbox3
textbox4
so when i use Tab key of keyboard to traverse these textboxs ie. when iam going from textbox2 to textbox3 the groupBox2.ContainsFocus is not set to true even though it is getting the focus. but when i use mouse clicking from textbox2 to textbox3 iam getting the groupBox2.ContainsFocus is set to true Is this the .Net framework Magic?:-)

Nov 15 '05 #2
Are you sure the textboxes in groupBox2 are actually contained inside the
GroupBox? It's possible to have a control *over* a GroupBox so that it
appears to be contained, but isn't.
Nov 15 '05 #3

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

Similar topics

5
by: Scott Matthews | last post by:
I've recently come upon an odd Javascript (and/or browser) behavior, and after hunting around the Web I still can't seem to find an answer. Specifically, I have noticed that the Javascript...
3
by: Faith | last post by:
Hi all, I have a serious problem that I am not sure whether its a bug in the Microsoft Visual C++ or something that I am doing wrong. The problem is (as noted in the Subject) is that my program...
5
by: Ben R. | last post by:
Hi, I've got the following code sample to reproduce my issue: Public Class Form1 Inherits System.Windows.Forms.Form Shared Sub main() Try Application.Run(New Form1)
1
by: Do | last post by:
Hi, Has anyone every had two NET Framework 1.1 Servers that both run the same web application, but the behavior of the forms is different? My form validation behaves differently on two...
15
by: Joe Weinstein | last post by:
Hi. Below is a simple JDBC program to insert and extract a numerical value. When ResultSet.getDouble() is called, the same program produces different output on solaris than it does on Linux. I...
1
by: rchen8080 | last post by:
I found that the php script behaves differently when it run in command line rather than runing over web server. Program includes the code like <?php function send_email($from_address,...
3
by: maciek kanski | last post by:
Hello I have running WCF service (config below) hosting in just console application - because I've used InstanceContextMode.Single and ConcurrencyMode.Multiple and no Throttling I expect that 10...
17
by: yawnmoth | last post by:
http://www.frostjedi.com/terra/scripts/demo/this-alert.html http://www.frostjedi.com/terra/scripts/demo/this-alert2.html Why, when you click in the black box, do the alert boxes say different...
0
by: souvickm | last post by:
I have developed an exe to cut image files from a dumped folder and paste them in some other folder(categorized into subfolders) on a different machine. I have also coded to generate a text file at...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...

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.