How to put a background image and make it responsive?

4

I'm learning C #, so I'd like to know how to put a background image (and / or> background) and also remove the blue borders. I'm using Visual Studio.

Ps : Some videos I saw on YouTube basically boiled into the properties of form and set in Appearance an image, but this technique does not change the form code and leaves borders different from the method I saw with buttons where you went in direct code and changed its appearance without leaving borders

I'm using Windows Forms.

    
asked by anonymous 09.05.2017 / 17:09

1 answer

5

Use BackgroundImageLayout like this:

SeuObjeto.BackgroundImageLayout = ImageLayout.Stretch;

You can also use Zoom , if you prefer.

See more details on link .

    
09.05.2017 / 23:41