How to put a background image and make it responsive?

Asked

Viewed 1,530 times

4

I’m learning C, so I’d like to know how to put a background image (background) and also remove the blue edges. I’m using Visual Studio.

Ps: some videos I saw on Youtube were basically about going into the properties of form and define in Appearance an image, but this technique does not change the form code and leaves different borders of the method I saw with buttons where one went in the direct code and changed its appearance without leaving borders

I’m using Windows Forms.

  • 2

    This in Windows Forms?

1 answer

4


Use the BackgroundImageLayout thus:

SeuObjeto.BackgroundImageLayout = ImageLayout.Stretch;

You can also use the Zoom, if you prefer.

Check more details on link.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.