Change button image via code

-1

Use Genexus Evolution 3 C # Win Generator. I would like to change the image of a button via code. I put in the start event the following code:

botao.Bitmap = LoadBitmap ('\ pictures \ image2.jpg')

But it did not work. the button is blank, does not load the image. I have tried to put relative path to get inside a subfolder where the application is running.

Thankful

    
asked by anonymous 09.06.2018 / 17:57

1 answer

0

Enter the button image with View > Images, and then use an image-type variable.

So you can load the button as the image in the Start event of the page

& Selector.FromImage (SelRow)

I hope I have helped.

    
20.06.2018 / 03:20