Enclosed is a procedure I have for rotating picture boxes. I would like to convert this to an active x control. Would prefer to have it use the image control if possible since its a lightweight control. If that's not possible, then doing it with the picturebox would be fine. The properties for this would be these?
1. picture (the same property as the picture property on the picture or image control where the source can be from a image list box, another picture, etc.)
The width and height should automatically be adjusted (no matter whether the image or the picture box is being used). For example, if the dimensions of the picture is 50 by 50, then the height would be 50 and the width would be 50. If its being rotated, then the values may change.
6. degrees (90, 180, 270, 0)
Must be able to put on top of other containers (like frames, etc.)
The only method should be rotate. When the rotate method is used, then the width and the height property should automatically be adjusted to reflect this. 90 degrees would be equivient to clicking the rotate image. 180 would be like clicking the flip image. 270 would be like clicking the rotate then flipping the image. The purpose of this is to use it for various domino games or games where sometimes the image has to be rotated or flipped or both. The active x control should be programmed in Visual Basic. I also need a sample project that is similar to the one enclosed to show the control working. The sample project must be in Visual Basic. Let me know if you have any questions.
The compiled active x control and the source code for the active x control. Also, the source code only for the sample project to show it working properly. Next, if it cannot be done with the image control then an explanation of why it cannot use a lightweight control.
Windows 2000, Windows XP Home Edition.