Skin
Hi
Any one has an idea on how to do a resizable skin in C#
I did something may be good I used 8 Images 4 for the corner and the other for the middle border to resize them.
But the problem I can not make part of the corner transparent cause when I set the form transparent key to the same color for the part I want to remove it from the corner image I have a flicking in the window when I resize.
this is my resizing code.
private void pictureBox1_MouseMove(object sender, MouseEventArgs e)
{
Cursor.Current = Cursors.SizeNWSE;
int x1 = Cursor.Position.X;
int y1 = Cursor.Position.Y;
if(e.Button == MouseButtons.Left)
this.SetBounds(this.Location.X, this.Location.Y,(x1 - (this.Left)) + 10,
(y1 - (this.Top)) + 10);
}