SetRotation is not working?

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
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
0
0

 

 

Ok ok, thanks.. is working now!

  • You must to post comments
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
Showing 2 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json