I have a vb add-in that adds items to the transaction screen from a userform, and it works great, except that is doesn't place the cursor in a new blank line, ready for the next entry on the transaction. is there a way do this via qsrules in code?
thanks, kevin
Didn't find your answer? Ask the community — no account required.
J
Jewelsmith
I found this when I was searching this forum for "code" sounds like a similar problem
Your add-in probably works, but it is the grid that is problematic. It's in memory already but somehow the grid does not update automatically. If you scroll down to the very bottom of the grid by pressing the down key, and then press the DEL key, your missing line will magically appear. So one workaround you can try doing programmatically is:
Set the current focus to the grid.
Send DOWN keystrokes until the cursor is at the bottom of the grid.
Send the DEL keystroke to force the grid to refresh it's display.
"ksk> I have a vb add-in that adds items to the transaction screen from a userform,
K
kskinne
sendkeys I understand, but how do i set the focus back to the grid within the code, before it ends?
thanks, kevin
K
kskinne
i got the sendkeys to work in my code, for more info see my posts in the thread that Jewelsmith was referring to.
thanks, kev> sendkeys I understand, but how do i set the focus back to the grid within the
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.