I've created a UserControl which displays some nice graphics which can be set by the user trough a Picture property. To store the picture I used a picturebox.

The problem is that I don't want the UserControl to get the focus, which is normally done using the CanGetFocus property, but I can't change that property to False, because of the PictureBox, it shows: "Can't have child controls capable of receiving focus on a control that cannot receive focus".

I want the user to be able to set a picture property exactly like a normal picturebox has, but I don't want to use a picturebox to hold the picture. The bitmap has to be saved in the .frx file (and in the EXE when compiled), so having a Filename property and loading the bitmap at runtime is not an option. The bitmap will also be used for BitBlt operations, so using the UserControl's picture property isn't an option either.

Thanks,