> This posting is provided "AS IS" with no warranties, and confers no rights. > Please reply to newsgroups only. Thanks.

Sat, 29 Jan 2005 05:03:20 GMT

Bharat Patel [M#2 / 5

Tab Key Not Working - Wierd!

Hi Selden,

I tested this out and I found the reason why it happens. When you use Show method of the form, the form opens nonmodally and thus there is no windows message loop associated with it. If you use ShowDialog method instead of Show, the form opens modally and the Tab keys work fine as expected. In this case a new message loop for the windows form gets created. Can you open the Form Modally?

Thanks! Bharat Patel Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights. Please reply to newsgroups only. Thanks.

Sun, 30 Jan 2005 01:53:26 GMT

Paul Thornet#3 / 5

Tab Key Not Working - Wierd!

While I am in no way commenting on your specific solution to the original problem, I do wish to question the general modality question that MS is so keen on.

IMHO MS products make far and away too much use of modal windows - they are generally quite irritating to work with. For example, editing any Stored Procedure in Sql Server's Enterprise Manager results in a modal window, thereby preventing any other (possibly related) stored procedure, or table design, window from being opened. Many dialogues throughout Windows 2000 are also modal - and, IMHO, usually quite unnecessarily. One wonderful example of really powerful software is Directory Opus, which is a replacement for Explorer. Even when the Customize option is chosen (in order to change menus, toolbars, etc.) the application continues to allow any other window to be opened, so you can gauge the results of your tinkering as you go. I know of no MS product that works like this.

-- Paul Thornett

Quote:

> I tested this out and I found the reason why it happens. When you use Show > method of the form, the form opens nonmodally and thus there is no windows > message loop associated with it. If you use ShowDialog method instead of > Show, the form opens modally and the Tab keys work fine as expected. In > this case a new message loop for the windows form gets created. Can you > open the Form Modally?

Sun, 30 Jan 2005 15:05:37 GMT

Bharat Patel [M#4 / 5

Tab Key Not Working - Wierd!

Hi,

Thanks for your comment and feedback. This seems like a useful suggestion; however, I would suggest you to send your feedback directly to

Thanks! Bharat Patel Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights. Please reply to newsgroups only. Thanks.

Sun, 30 Jan 2005 21:31:45 GMT

Selden McCab#5 / 5

Tab Key Not Working - Wierd!

That worked! It also solved the problem where TAB was not moving the focus from cell to cell in the datagrid. Thanks!