0

I have a VB.net scrip that I would like to run from the toolbar. In VBA, you would create a buttton that would collect the xy coordinates and pass the variables to the script for running. I can't seem to figure out how to pass the variables. When i create a button and click, the script ask for the variables before I have time to click the map.

Here is an example of the script I am using:

Creating StreetView/Bing Bird's Eye Add-In?

Thanks a bunch!

Heather

1
  • VB.NET script? I don't think such a thing exists. Are you sure you are talking about VB.NET? Commented Feb 20, 2012 at 8:34

2 Answers 2

1

It sounds like you need to create a UIToolControl not a UIButtonControl. UIToolControls events interact with the view.

Creating custom commands with VBA and UI Controls

answered Feb 20, 2012 at 2:27
0

For walk-thru of how to build a button using the "Add-in" technique see ESRI's example, which is mentioned as a resource in answering a previous question on this site that may be of use to you.

answered Dec 21, 2011 at 17:51
1
  • I believe Heather is attempting to add the script to a VBA toolbar, not an add-in. Commented Feb 20, 2012 at 3:17

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.