Solved

Scrolling textBox with API

Posted on 2002-07-17
2
160 Views
Last Modified: 2011-09-20
I am trying to use the windows API to automatically scroll a textbox. (On a win2000 machine) I have the following code.
(In my basic Module..)
Public Declare Function SendMessageByVal Lib "user32" _
  Alias "SendMessageA" (ByVal hWnd As Long, _
                        ByVal wMsg as Long, _
                        ByVal wParam as Long, _
                        ByVal lParam as Long) As Long

(In my form code...)
SendMessageByVal txtStatus.hWind, EM_LINESCROLL, 0, 1

Of course, EM_LINESCROLL is a constant, and the run-time compiler demmands that I declare it as such. Unfortunately my source of information lacks any sort of value it should be declared with.

Can anyone provide me with this missing value? Or....is there something else wrong here that is inadvertently producing the same error message...could it be the win2000 enviro?

I appreciate any "kick-starts" here..
0
Comment
Question by:GeekMan
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 100 total points
ID: 7159749
Private Const EM_LINESCROLL = &HB6

Is what you need.
0
 

Author Comment

by:GeekMan
ID: 7159802
Thanks it worked
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question