O
O
omerkhan2021-12-27 15:35:26
C++ / C#
omerkhan, 2021-12-27 15:35:26

How to solve problem with PictureBox on Windows Forms?

Good evening
Specified a photo in InittialImage, but it is not displayed. Instead, just the background color. What to do?
61c9b305582b1820478830.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2021-12-28
@yarosroman

Typically the PictureBox is used to display graphics from a bitmap, metafile, icon, JPEG, GIF, or PNG file.
Set the Image property to the Image you want to display, either at design time or at run time. You can alternatively specify the image by setting the ImageLocation property and load the image synchronously using the Load method or asynchronously using the LoadAsync method.
https://docs.microsoft.com/ru-ru/dotnet/api/system...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question