Hi,
I am using and trying to create a button through code. I want to assign an image to the button, but I think something is wrong in my code. Can anyone please let me know how to assign an image to a button through code.
Thanks
I am using and trying to create a button through code. I want to assign an image to the button, but I think something is wrong in my code. Can anyone please let me know how to assign an image to a button through code.
Thanks
Code:
ctrlButton = New Button CType(ctrlButton, Button).Image = New System.Drawing.Image(strConfigFilePath & "Folder.ico")
Comment