?
Solved

Scrolling textBox with API

Posted on 2002-07-17
2
Medium Priority
?
168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
TimCottee earned 400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

762 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