Notifications
Clear all

[Closed] DotNet Image

I need a way to remove a dotnet image from a form background. I apply the background image with this code.

form.backgroundImage = (dotNetClass "system.drawing.image").fromfile dir

I would like to remove the image from the background with a simple line of code. If thats not possible I would like to find a way to create a dotnet image thats maybe 1 x 1 resolution thats transparent (background image is using a stretch layout so the 1 x 1 resolution should work). I would like to avoid using an external image for the transparent image and would love to just be able create one using dotnet.

Any Ideas?

2 Replies
 lo1
form.backgroundImage = undefined

I could have sworn I tried that before and it caused a crash but it works now. Thanks
lo