A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[C#] Resize

1.3k views · started by Chad ·
#1
[C#] Resize
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.

using System.Threading;


        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);
}
}
}
#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...
#3
BooBearSH wrote:
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...


This is for the form size. The GUI. I could resize images though.