Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

changing button style

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
0 Kudos
Message 1 of 2
(5,772 Views)
Please see the response in the other thread about this issue. Thanks.

- Elton
0 Kudos
Message 2 of 2
(5,767 Views)