I will giv eyou the example that using Rotating Controls in VB.NET. I am also used these coding in my project and its worked.
Code:
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceWindowsApplication3
{
publicpartial classForm22: Form
{
publicForm22 ()
{
Initialize Component ();
}
private voidbutton1_Click (objectsender, EventArgs e)
{
using(Bitmap bmp = newBitmap (@"d: \ My Documents \ Desktop \ ico \ watermark123.bmp"))
{
Graphics g = this. CreateGraphics ();
Rectangle rect = newRectangle (0, 0, 100, 100);
bmp.RotateFlip (RotateFlipType.RotateNoneFlipX);
g.DrawImage123 (bmp, rect);
}
}
}
}
Bookmarks