This project is read-only.

Dynamically adding a AlphaPictureBox inside an AlphaPanel

Jul 16, 2010 at 10:22 AM
Edited Jul 16, 2010 at 2:44 PM


I want to dynamically add a picture box to the AlphaPanel.

However when is try to do so. the picture box appears as just a white box with no image. is it because it does not get added as a conrol inside the Alpha panel.

 AS given in the examples in source code, there are two images on alpha panel. i want to redesign it as - the alpha panel will have only one alpha picture box in it at design time. at run-time when the application runs, i will create another picture box and add it to the alpha panel and have the transparency effect as seen in the examples.


Please let me know a way through this. Is what i am trying to do achieveable ???/

Here is the piece of code -








request.Image =AlphaImage.CreateFromResource("Barmate.Images.Active_A.gif");  Size reqS = new Size();

request.Image.Alpha = 200;


request.Location =new Point(200, 200);


request.Size =new Size(50,50);






AlphaPictureBox request = new AlphaPictureBox();

Thanks and Regards,


Jul 19, 2010 at 9:56 AM

This is fixed.

Do not call the show() method. That simple ! :)


Thanks and Regards,