Solved

Scrolling textBox with API

Posted on 2002-07-17
2
159 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

832 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