• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 474
  • Last Modified:

VB6 RichTextbox mousedown/mouseup

Dear Experts,

I am using a hidden richtextbox in vb6. How can I programmatically trigger a mousedown/mouseup event at a specified selstart location?

Thanks!
0
ttobin333
Asked:
ttobin333
  • 2
  • 2
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Why would you need to do that on a hidden RTB?...
0
 
VBClassicGuyCommented:
Just call the routine and send it the parameters:

Call rtbText_MouseUp(parameters...)
0
 
ttobin333Author Commented:
Idle Mind, It's actually behind other controls and can't be seen, but visible property = true. VBClassicGuy, I want to be able to trigger the mouseup/down without having to use X and Y coordinates, just selstart value.
0
 
VBClassicGuyCommented:
Then just feed the routine zero for x and y and don't use them. SelStart can be a "global" value for the form that is set somewhere else, and used in the MouseUp/Down routine.
0
 
ttobin333Author Commented:
Thanks! Easier than I thought it would be.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now