Author Topic: HMINumericTextBoxI - Numeric TextBox Control For HMI  (Read 3110 times)

nirav496086

  • Newbie
  • *
  • Posts: 3
    • View Profile
HMINumericTextBoxI - Numeric TextBox Control For HMI
« on: November 26, 2016, 03:26:08 PM »
Read about my first label control here.

HMINumericTextBoxI
This library can be directly added to left side toolbox by using "choose items". ( Tested on VB2010, .NET 3.5 )
There will be one master control and all other control can be set to child control of master control.

-> This is textbox control is just simple masked textbox allows user to input only numbers. This control also allows "Enter Key" n "Backspace Key". The text set to master control will set same text to all its child controls textboxs simultaneously.

How to Use :

HMINumericTextBoxI.SetValue -> Sets the textbox text
HMINumericTextBoxI.TbTextChanged -> This event will be triggered when "HMINumericTextBoxI.SetValue" or "HMINumericTextBoxI.TextChanged" event occurs. This event will update its child control's text.
HMINumericTextBoxI.MasterControl -> This will set master control of this control. The text of Master control will be applied to this control simultaneously.

->You can also set master control programmatically.
HMINumericTextBoxI.SetMasterControl

* Public Sub SetMasterControl(ByRef newMasterControl As HMINumericTextBoxI, ByRef Optional oldMasterControl As HMINumericTextBoxI = Nothing)

Please Note :
See Constructor Code
-> HMINumericTextBoxI.ShortcutsEnabled = False 'Shortcuts Disabled
-> HMINumericTextBoxI.ContextMenu = ContextMenu() 'RightClick Context Menu Disabled

I had tasted this textbox control with VS2010 VB.NET FWv3.5 and with 1 master control and 9 child control working like charm ;)
« Last Edit: November 26, 2016, 03:34:40 PM by nirav496086 »