Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Suite Pro
  New Posts New Posts RSS Feed - Sendkeys with FlatEdit control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Sendkeys with FlatEdit control

 Post Reply Post Reply
Author
Message
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Topic: Sendkeys with FlatEdit control
    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.
Back to Top
nvierros View Drop Down
Groupie
Groupie
Avatar

Joined: 02 July 2006
Location: Australia
Status: Offline
Points: 44
Post Options Post Options   Thanks (0) Thanks(0)   Quote nvierros Quote  Post ReplyReply Direct Link To This Post 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..
 
 
 
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 09 August 2007 at 8:34am
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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.