Rotating Controls in VB .NET?

Discussion in 'Software' started by Aphelion5, Dec 8, 2009.

  1. Aphelion5

    Aphelion5 Private E-2

    Is there any way for me to "Rotate" controls (i.e. PictureBoxes, Buttons, Labels, etc) in VB .NET?

    I can do it in C# .NET, but is there a way for it to work in VB .NET?
     
  2. mastermosley

    mastermosley Sergeant

    Try this

    myPictureBox.Image.RotateFlip(RotateFlipType.Rotate180FlipNone);
     
  3. Aphelion5

    Aphelion5 Private E-2

    Thanks, however, can you do that for different degrees?
     
  4. SWario

    SWario Sergeant

    You can specify a different RotateFlipType according to the list here.

    Not sure how you'd rotate the image in increments other than 90 degrees though.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds