Using Component works for vb.net, how do I change the style of an input button? I am dynamically creating buttons to indicate digital inputs, but the style defaults to an output toggle button. I want to change the style to a green/red led.
My code snippet is as follows:
For Each anIo In colIo
If anIo.nType = IoAcess.IoType.DIG_IN Then
Dim cwbIn As AxCWUIControlsLib.AxCWButton
cwbIn = New AxCWUIControlsLib.AxCWButton
I want to insert here:
cwbIn.OffImage.CWImage.Picture = ???
but I see no way of getting the picture resources out of a file and casted into the Component Works