Double-Click VBA in FactoryTalk SE

TonytheEE

Member
Join Date
May 2012
Location
Memphis
Posts
12
Hey guys. I've got a very simple command I want to run that needs to be in VB code. I want to trigger it when an item in a listbox is double-clicked (It's a Display Selection Window). However, when I enter the following:

Private Sub ListBox3_DblClick()
<Code>
End Sub


I get this message when I run the window:

Compile Error:

Procedure declaration does not match description of event or procedure having the same name.


If I right click the object, I get the ActiveX window, but all it lets me run is macros, which I can't do with the code. It involves the Display Command, but has dependent variables. o_O

So how do you get a VBA event to run from a double click?

Thanks,

Tony
 
Here the code I've used to realize a dummy's test:

Code:
Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)

Text1.Caption = "doubeclick catched"

End Sub

- fuzzy logic
 

Similar Topics

What is the simples way to do a double click of a button in a ladder logic. New here and I hope this has not been asked before.
Replies
22
Views
535
Hello. I have been working on my first plc project for a while now. I just ordered all the parts that I need and before I did that, I created the...
Replies
10
Views
2,031
Is there a simpler way to express a double click pattern in ladder-logic? Goals are: 1. One input X1 should trigger either output Y1 or output...
Replies
8
Views
2,895
I am using Step 7. I have to double click on the motion button to get it to work. The motion is a buffer stop, pretty simple. But the motion will...
Replies
1
Views
1,252
i have direct logic 105 w/ a usb-serial cable with which i am trying to control led lights but i can't get dslaunch to open when i d-click the...
Replies
3
Views
1,671
Back
Top Bottom