Print Page | Close Window

Sendkeys with FlatEdit control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7692
Printed Date: 17 November 2024 at 12:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Sendkeys with FlatEdit control
Posted By: joeliner
Subject: Sendkeys with FlatEdit control
Date Posted: 30 July 2007 at 6:18am

Hi,

I have a form, with the following piece of code on Form_keydown:
 
   Select Case KeyCode
        Case vbKeyUp
        SendKeys "{Home}+{tab}"
        Case vbKeyDown
          SendKeys "{Tab}"
    End Select
with Ms textbox, the event fires accordingly in that when user presses up/down, the cursor move to next/previous textbox.
 
Unfortunately, with Flatedit not working: up/down key strikes makes the cursor move left/right of the text in the textbox.
 
Is it my code, or the flatedit in the way it handles the sendkey?
 
please advise.



Replies:
Posted By: nvierros
Date Posted: 07 August 2007 at 3:56am
Try compliling the exe and running it, for some reason i get this problem in only a single portion of my program, when the controls are in a picture box, when compiled it runs as it should for some wierd reason..
 
 
 


Posted By: joeliner
Date Posted: 09 August 2007 at 8:34am
http://forum.codejock.com/uploads/20070809_083109_vbproj.rar - uploads/20070809_083109_vbproj.rar
hi thanks for that.
 
however i tried two flatedit controls on a form and the result aint any different. Just check out hte attached sample VB project. The up and down key moves the cursor left and right in the texbox but not to next control.
 
my environ:
OS - windows Vista
VB6 SP6
 
thanks.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net