Solved

Scrolling textBox with API

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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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 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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

717 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