Button Dropdown List in VST

  • Button Dropdown List in VST

    Posted by greg-wahl on April 25, 2018 at 1:46 pm
    • Greg Wahl

      Member

      April 25, 2018 at 1:46 PM

      I added a button dropdown list to a window in modifier and I added 3 items to it so when you click on the button, you get 3 choices underneath it.Ā 

      Now, in Visual Studio Tools, I can add an eventhandler to the button but I want to add an eventhandler to the 3 individual items under that button so that I can do different things depending upon the selected menu item.Ā  What is the proper VB command to do that?

      The command to add an eventhandler to the actual button is as follows…

      AddHandler EquipmentForm.MaintWindow.LocalBtnImage.EnterAfterOriginal, AddressOf Openbrowser3

      Button Dropdown List
      Button List 1

      ?

      ——————————
      Greg Wahl
      Senior Database Administrator
      Owensboro Municipal Utilities
      Owensboro KY
      ——————————

    • David Musgrave

      Member

      April 26, 2018 at 2:28 AM

      Hi Greg.

      I think that you will need to use pass through sanScript to make this work.

      David

      ——————————
      David Musgrave MVP, GPUG All-Star

      Managing Director
      Winthrop Development Consultants

      Perth, Western Australia

      http://www.winthropdc.com
      ——————————
      ——————————————-

    • Dan Peltier

      Member

      April 26, 2018 at 9:35 AM

      If you’re using Visual Studio, then just type out the object you want the event on, hit period, and scroll through the list of available events. The little lightning bolt means it’s an event. I’m using C#, but it’s close enough to VB to show what to do. The point is, Visual Studio can write the code for you, so long as you know the object.

      Once you have the event, type space += and then you’ll get a popup asking if you want to create the handler.

      Hit tab, and you have a stub handler to put your code.


      If you’re not sure which Event to use, put a MessageBox popup in events until you find the one you want.

      ——————————
      Dan Peltier
      Sr. Support Engineer
      Microsoft
      Fargo ND
      ——————————
      ——————————————-

    greg-wahl replied 8 years, 6 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Button Dropdown List in VST’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!