A quick snippet I made to resize a form to the specified height at 416 max, 138 min. I use it for logins to show functions and what not.
PHP Code:
using System.Threading;
PHP Code:
private void Resize(Boolean Shrink)
{
if (Shrink == false)
{ //GROWS!
while (this.Size.Height < 416)
{
this.Size = new Size(this.Size.Width, this.Size.Height + 1);
Thread.Sleep(7);
}
}
else
{ //shrinks =(
while (this.Size.Height > 138)
{
this.Size = new Size(this.Size.Width, this.Size.Height - 1);
Thread.Sleep(7);
}
}
}
Results 1 to 3 of 3
Thread: [C#] Resize
- 04 Apr. 2011 02:41am #1
[C#] Resize
- 04 Apr. 2011 03:38am #2
Hey. This gave me an idea of something you could mess around with.
Say I have 50 different images, and I want to resize them into a document to print them... Say I want about... 5 rows of 4 on each page.
Could you make a program that resizes and creates a document with them?
Something you can play around with...
- 04 Apr. 2011 03:51am #3