winforms - Windows Forms c# picturebox and whitespace -


i have been designing simple powerpoint/image-editor style program.

i have panel in program can drag , drop in multiple images , textboxes, resize , move these items.

the problem having want able place multiple images on panel , these may overlap, @ minute excess whitespace because of picturebox when png or bitmap has no whitespace, filler whitespace between image , picturebox.

hope makes sense

i have posted image shows problem.

enter image description here

can see solution problem?

you should try override onpaintbackground-method, shown here:

https://stackoverflow.com/a/8689454/2549398


Comments