Click here to Skip to main content
15,915,093 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralCalling my custom editor Pin
Julusian18-Jan-03 7:36
Julusian18-Jan-03 7:36 
Generalcalling a function to save to a table Pin
mcm18-Jan-03 5:11
mcm18-Jan-03 5:11 
GeneralRe: calling a function to save to a table Pin
Hesham Amin19-Jan-03 9:07
Hesham Amin19-Jan-03 9:07 
Generaltab event in datagrid Pin
mcm18-Jan-03 0:02
mcm18-Jan-03 0:02 
GeneralMiddle Button scroll in combo box Pin
shaquille o'neal17-Jan-03 9:18
sussshaquille o'neal17-Jan-03 9:18 
GeneralRe: Middle Button scroll in combo box Pin
mikasa17-Jan-03 9:58
mikasa17-Jan-03 9:58 
GeneralRe: Middle Button scroll in combo box Pin
shaquille O'Neal18-Jan-03 1:48
sussshaquille O'Neal18-Jan-03 1:48 
GeneralRe: Middle Button scroll in combo box Pin
Tim McCurdy18-Jan-03 7:24
Tim McCurdy18-Jan-03 7:24 
Ok, you need to use the API function "SendMessage" (i.e. SendMessageA). I suggest you download the API Guide (Do a search on API Guide on the Internet).

The Scrollbar works by sending the WM_VSCROLL message. Now, you'll have to SubClass the Window you want to handle the Wheel Mouse on. You can do this by intercepting the WM_MOUSEWHELL Message. Again, all this is contained in the API Guide. If you need an example of SubClassing, I can help but I don't have a lot of time to explain it. Also, Subclassing is 100 times easier to do in .NET than VB6.

After you have the WM_MOUSEWHEEL intercepted, just pass the message for it to scroll Up or Down by passing a "0" or "1" to the LParam of the SendMessage (it's either that or the WParam, can't remember off the top of my head).

Call SendMessage(lstBoxHandle, WM_VSCROLL, 1, 0)
Call SendMessage(lstBoxHandle, WM_VSCROLL, 0, 0)

Not all those who are lost are looking to be found. But of those who are lost and those who are found, all are looking for something higher than themselves.
Generallooping through rows in datagrid to save to database Pin
mcm17-Jan-03 9:00
mcm17-Jan-03 9:00 
Generalwindows services Pin
StevensN17-Jan-03 6:22
StevensN17-Jan-03 6:22 
GeneralRe: windows services Pin
Ray Cassick17-Jan-03 7:08
Ray Cassick17-Jan-03 7:08 
Generalusing array (or recordset???!!) as datasource for datagrid Pin
mcm17-Jan-03 4:05
mcm17-Jan-03 4:05 
GeneralRunAs / LogOnAsUser Pin
cescosystem17-Jan-03 3:50
cescosystem17-Jan-03 3:50 
GeneralBidirectional TCP Genuine Channels are Available. Pin
Bill200217-Jan-03 0:14
Bill200217-Jan-03 0:14 
GeneralHOWTO Determine the Memory required for a DOMDocument Pin
Paul Farry16-Jan-03 20:08
professionalPaul Farry16-Jan-03 20:08 
Generalcopying arrays Pin
brieg100016-Jan-03 11:07
brieg100016-Jan-03 11:07 
GeneralRe: copying arrays Pin
Nick Seng16-Jan-03 14:34
Nick Seng16-Jan-03 14:34 
GeneralRe: copying arrays Pin
brieg100017-Jan-03 5:04
brieg100017-Jan-03 5:04 
GeneralRe: copying arrays Pin
Richard Deeming17-Jan-03 8:01
mveRichard Deeming17-Jan-03 8:01 
GeneralRe: copying arrays Pin
brieg100020-Jan-03 3:17
brieg100020-Jan-03 3:17 
GeneralRe: copying arrays Pin
Richard Deeming20-Jan-03 4:01
mveRichard Deeming20-Jan-03 4:01 
GeneralIssue with ToolTips Pin
Andrew Stampor16-Jan-03 9:20
Andrew Stampor16-Jan-03 9:20 
GeneralADODC: no recordsource specified Pin
mcm16-Jan-03 8:05
mcm16-Jan-03 8:05 
Generalupdating 2tables in database based on new record in datagrid Pin
mcm16-Jan-03 5:17
mcm16-Jan-03 5:17 
GeneralGrid Pin
Ilan Ehrenfeld15-Jan-03 20:50
Ilan Ehrenfeld15-Jan-03 20:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.