473,386 Members | 1,712 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,386 software developers and data experts.

Tabbing not working in vb 6.0 forms

I'm in dire straits. I'm converting part of a product into VB.NET, but
still need to access forms written in VB 6.0. I've got just about
everyting working, but the tabbing on the form. The form captures the
tab key when it's pressed, but fails to go through the series of
controls. Help!

Apr 11 '06 #1
2 2287
"rmiller" <Cu*************@gmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
I'm in dire straits. I'm converting part of a product into VB.NET, but
still need to access forms written in VB 6.0. I've got just about
everyting working, but the tabbing on the form. The form captures the
tab key when it's pressed, but fails to go through the series of
controls. Help!


Did that form behave correctly from VB6? Are you using any APIs to reset the
Parent of that VB6 form (fwiw, a misbehaved tab key is one of the side
effects of the SetParent API)? You mention that the form traps the tab
key.... how? Normally, in VB6, you can detect Tab only if TabStop = False on
every control on the form. Is this the case? More info please <g>

Thing is, if you set TabStop = False on all controls in that VB6 form, I can
dig up some code that gathers all controls into a collection, sorts them
based on TabIndex and when Tab (or Shift Tab) is pressed, the code figures
out (easily) which control needs to get focus.

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Apr 11 '06 #2
Thanks Ken. The form behaves normally when called from another VB6.0
application. I use an API (ShowWindow, i believe) to show the form
because one cannot call a COM non-modal form from .NET app. This makes
it an out of process object and it looses the ability to capture the
Tab key for some reason, so instead it enters the KeyDown routine for
the Form rather than just skipping to the next control. I added some
code to find the ActiveControl and then set the ActiveControl to the
next one in the TabIndex order which seems to work well, but kind of a
hack in my opinon.

Apr 11 '06 #3

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

Similar topics

0
by: Mike | last post by:
I am working on an application originaly developed in VB5.0/6.0 that has a mdi parent/child forms. I created a VB.net 2003 program with a couple of forms, compiled it as a dll and registered it as...
1
by: Mike | last post by:
I am working on an application originaly developed in VB5.0/6.0 that has a mdi parent/child forms. I created a VB.net 2003 program with a couple of forms, compiled it as a dll and registered it as...
2
by: Samuel Hon | last post by:
Hi I'm trying to prevent users from moving between different records in forms in Access 2000. I've turned off the record selectors and disabled the mouse wheel. I've now found that you can...
1
by: Tom | last post by:
A dumb question: Exactly how does tabbing work in an ASP.NET form in the browser? Does it work the same was as a Windows Forms form does? I have a rather complicated ASP form (that consists of...
3
by: Fredrik Melin | last post by:
Have posted about this before without luck, maybe someone know a workaround. Using Framework 1.1 I have about 140 clients running my application, every day, some of them loosing the Tab key...
6
by: Doug Bell | last post by:
Hi I have a DataGrid with some hidden columns and also some read Only and some ComboBox Columns. Sandard Tabbing through the Datagrid sees the focus go to the hidden columns requiring further...
3
by: ryanmiller | last post by:
I've got a vb6 dll i reference in my .net app which contains forms that i need to load now and again. The problem i origianlly had was that i couldn't show these forms the old way (aForm.Show). I...
3
by: Ty | last post by:
I am creating a ASP.net project and I wanted to make it so that when the user tabs on on of my pages that they do not have to tab through some controls. Is there a way to skip controls while...
4
by: Joe90 | last post by:
Hi, I'm looking for some help on auto tabbing between edit boxes, on a asp.net page writing with C#. The edit boxes are auto generated at run time and could from 1 to many boxes so the code...
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:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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...
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,...
0
jinu1996
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...

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.