About your last questions:
2. You might try to look at the window style properties:
KeypadPopUp = New MfgControl.AdvancedHMI.Controls.AlphaKeyboard(m_KeypadWidth)
KeypadPopUp.FormBorderStyle = FormBorderStyle.FixedDialog 'For example
If you want all you keypads to have such property, I recommend you to go were the control is stored ("Purchased control" folder I suppose) and edit there the property in the property panel.
This way you can also edit the Keypad to fit your needs.
Note: I might be speaking to fast... this is only available for the AlphaKeyboard, not sure for the Keypad (it's a .dll, no ?)
But all in all, with the AlphaKeyboard, just deleting the letters and resizing, you can create a new easy to custom Keypad !
3. ... perfect transition for the next question, as you can ignore the Keypad properties of your control, and instead use the Click Event. There, add the code to show a virtual keypad/keyboard (following your need), and use the output text:
Example :
Private Sub EditBtn_Click(sender As Object, e As EventArgs) Handles EditBtn.Click
Dim kpd As New AdvancedHMIControls.AlphaKeyBoard2
kpd.PassWordCharacters = False ' Edit some properties of your Keyboard here, if needed.
Dim dr As DialogResult = kpd.ShowDialog()
If dr = DialogResult.OK Then
Dim newText = kpd.TextBox1.Text
'
' Make something with your output. You can check some conditions before using it (text lenght, convert to integer...)
'
sender.text= newText ' classic use for a textbox.
End If
End Sub
Works the same with the Keypad I suppose.
4. You can use the Click Event again. It's quite paintful as you have to add it to every control using a keypad...
Private Sub EditBtn_Click(sender As Object, e As EventArgs) Handles EditBtn.Click
sender.Backcolor = Color.Red ' Choose your highlighting color here.
End Sub
It's harder for the un-highlighting part...
In code, if you used the solution above you can just add at the end (after the End If): sender.Backcolor = Color... ' Default color here
Otherwise, in the ValueChanged Event (as when the keypad is hidden again, the value must have changed accordingly).