Login  
Search All Forums
Dart Home | PowerTCP Emulation for .NET | Custom Development Reply | PowerTCP Emulation for .NET Topics | Forums   
AuthorForum: PowerTCP Emulation for .NET
Topic: Extended Characters
TrentLawrence

From: Pekin, IL USA
Posts: 3
Member Since: 12/05/06
posted December 5, 2006 11:18 AM

I'm having several issues porting an application over from VB6 to VB.NET in VS2005. In my original application, I perform key remapping to interact with a specific business system running on HPUX. One of the specific customer requests was to remap the ENTER key on the numeric keypad to a special escape sequence for subsequent transmission to the host.

The problem arises in that in VB6 w/ the emulation tool, there was an "Extended" property in the event which was Boolean in type. When either Enter was pressed they both showed a value of 13, however, if the Enter key on the numeric keypad was pressed it would flag that Extended property in the event, allowing me to remap the second ENTER key separately from the main Enter key on the keyboard.

I have looked as thoroughly as possible but I'm unable to find a way to detect that second enter key is "extended" using the new emulator .NET component in Visual Studio 2005.

Is there any way, in the keypress or keydown events of the emulator, to detect which specific Enter key was pressed on the keyboard? 

Any help appreciated.

TrentLawrence

From: Pekin, IL USA
Posts: 3
Member Since: 12/05/06
posted December 5, 2006 12:07 PM

As an addition to this I wanted to clarify that the 'new' application is being written from scratch in VS2005 / VB.NET.

We tried working around this by using keypreview on the form level, but lo and behold there's no equivalent to the old functionality in .NET using stock MS events. As we're also not able to find a way to do this with stock Microsoft .NET keydown events, I'm thinking by the time the emulator gets ahold of the keydown message that data is / has already been stripped by the framework?

In Visual Studio 6, only Dart's component exposed this functionality. I do not recall ever being able to see an "extended" property with stock microsoft code in that environment - this was functionality apparently added specifically to Dart's emulator keydown event.

I have some experience making unmanaged calls and working with the windows API, but I'm thinking by the time that event gets hit in the framework, the keyboard buffers have already been emptied out and consumed by the framework.

So, the question of the day, if that functionality was added in custom for VS6, what's the chances of doing it once again for VS.NET? 

:-)
Reply | PowerTCP Emulation for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX