General Category > Tips & Tricks

Adding Keypad Popup to any control

(1/1)

Archie:
The code that makes a control pop up a keypad for data entry is encapsulated in a region which makes it easy to add to any control:

- In Solution Explorer, expand down the AdvancedHMIControls project
- Expand down the Controls folder
- Right click DigitalPanelMeter.vb and select view code
- Scroll down looking for  #Region "Keypad popup for data entry"
- Select the code form the line all the way down to #End Region
- Copy that code
- Open the control you want to add the keypad pop up to
- Scroll down to the bottom of the code and insert the copied code just above End Class
- Build the project

You may have to exit Visual Studio and re-open because sometimes it does not like controls modified especially if they exist on a form.

Navigation

[0] Message Index

Go to full version