[SOLVED] SetRotation is not working?

Answered Closed
0
0

 

Hi,

If I put the property directly in the Picture Object this work good but….

I’m trying to…

 

Dim p as New Wisej.Web.Rotation.Properties

p.RotateZ = 45

SetRotation(myPictureBox, p)

 

But this is not working… the object ‘myPictureBox ‘ is an object present in my form.

and i get this error:

 

An exception of type ‘System.NullReferenceException’ occurred in Wisej.Web.dll but was not handled in user code

Additional information: Object reference not set to an instance of an object.

  • You must to post comments
Best Answer
0
0

If the rotation extender has not initialized the call to SetRotation(c, p) will  cause this exception. Will log a bug fix.

The extender was designed to work with the designer and SetRotation() is rarely used.

You can do this:

    extender.GetRotation(c).RotateX = 50;

or

   var rotation = extender.GetRotation(c);
   rotation.RotateX = 50;

 

Best,

Luca

  • You must to post comments
0
0

 

 

Ok ok, thanks.. is working now!

  • You must to post comments
Showing 2 results